diff --git a/app/static/js/releve-but.js b/app/static/js/releve-but.js
index 3f7784b704bbfa6ff9bd59e16a99d9c9741bfe2d..5958da6fe213fe4a200a5db709dc8f579209d45c 100644
--- a/app/static/js/releve-but.js
+++ b/app/static/js/releve-but.js
@@ -328,7 +328,7 @@ class releveBUT extends HTMLElement {
 			this.shadow.querySelector(".decision").innerHTML = "Décision jury: " + (data.semestre.decision?.code || "");
 		}*/
     this.shadow.querySelector("#ects_tot").innerHTML =
-      "ECTS : " +
+      "ECTS semestre : " +
       (data.semestre.ECTS?.acquis ?? "-") +
       " / " +
       (data.semestre.ECTS?.total ?? "-");
diff --git a/tools/debian/postinst b/tools/debian/postinst
index 26a550d52b0d0a5c15e008bb4d06c549ed757645..539f1847ca92663934233025eab1a88a7870b724 100755
--- a/tools/debian/postinst
+++ b/tools/debian/postinst
@@ -27,8 +27,8 @@ set_scodoc_var_dir
 # ------------ LOCALES (pour compat bases ScoDoc 7 et plus anciennes)
 for locname in "en_US.UTF-8"
 do
-    outname=$(echo ${locname//-/} | tr '[A-Z]' '[a-z]')
-    if [ "$(locale -a | grep -E -i ^${outname}$ | wc -l)" -lt 1 ]
+    outname=$(echo ${locname//-/} | tr '[:upper:]' '[:lower:]')
+    if [ "$(locale -a | grep -c -E -i ^${outname}$ )" -lt 1 ]
     then
         echo adding $locname
         echo "$locname ${locname##*.}" >> /etc/locale.gen
@@ -40,7 +40,7 @@ echo "debian postinst: scodoc9 systemd service is $(systemctl is-active scodoc9)
 systemctl restart postgresql
 
 # Le numero de version complet, genre 9.0.0
-SCODOC_RELEASE=$(grep SCOVERSION $SCODOC_DIR/sco_version.py | awk '{ print substr($3, 2, length($3)-2) }')
+SCODOC_RELEASE=$(grep SCOVERSION "$SCODOC_DIR/sco_version.py" | awk '{ print substr($3, 2, length($3)-2) }')
 if [ -e "${SCODOC_VERSION_DIR}/scodoc.sn" ]
 then
     # upgrading