From 87dea45295b4537c32ee47fb2bcf2650024d8a10 Mon Sep 17 00:00:00 2001 From: Geoffray Levasseur-Brandin Date: Thu, 19 Jun 2025 14:38:18 +0200 Subject: [PATCH] fixed some variable declarations --- profile.d/pwd.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/profile.d/pwd.sh b/profile.d/pwd.sh index b8fdaff..e2af369 100644 --- a/profile.d/pwd.sh +++ b/profile.d/pwd.sh @@ -45,6 +45,7 @@ genpwd() local occurs=2 # Bug, if set to 1, seems to be ignored local symb=1 maj=1 min=1 numb=1 local nbpwd=1 + local extcar for opt in $@; do case $opt in @@ -89,7 +90,7 @@ genpwd() min=0 ;; "-e"?* | "--extracars"?*) - local extcar=$(echo "$opt" | cut -f 2- -d '=') + extcar=$(echo "$opt" | cut -f 2- -d '=') ;; "-L"?* | "--length"?*) local length=$(echo "$opt" | cut -f 2- -d '=') @@ -114,7 +115,7 @@ genpwd() disp E "Unknow parameter ${opt}." return 1 else - local nbpwd=$opt + nbpwd=$opt fi ;; esac