fixed some variable declarations

This commit is contained in:
Geoffray Levasseur-Brandin
2025-06-19 14:38:18 +02:00
parent 0abf481cf6
commit 87dea45295

View File

@@ -45,6 +45,7 @@ genpwd()
local occurs=2 # Bug, if set to 1, seems to be ignored local occurs=2 # Bug, if set to 1, seems to be ignored
local symb=1 maj=1 min=1 numb=1 local symb=1 maj=1 min=1 numb=1
local nbpwd=1 local nbpwd=1
local extcar
for opt in $@; do for opt in $@; do
case $opt in case $opt in
@@ -89,7 +90,7 @@ genpwd()
min=0 min=0
;; ;;
"-e"?* | "--extracars"?*) "-e"?* | "--extracars"?*)
local extcar=$(echo "$opt" | cut -f 2- -d '=') extcar=$(echo "$opt" | cut -f 2- -d '=')
;; ;;
"-L"?* | "--length"?*) "-L"?* | "--length"?*)
local length=$(echo "$opt" | cut -f 2- -d '=') local length=$(echo "$opt" | cut -f 2- -d '=')
@@ -114,7 +115,7 @@ genpwd()
disp E "Unknow parameter ${opt}." disp E "Unknow parameter ${opt}."
return 1 return 1
else else
local nbpwd=$opt nbpwd=$opt
fi fi
;; ;;
esac esac