removing double quotes + divers petits bugs

This commit is contained in:
2025-07-30 02:57:38 +02:00
parent 8baf9fc492
commit 400775bf41
39 changed files with 158 additions and 166 deletions

View File

@@ -3,6 +3,7 @@
KAZ_ROOT=$(cd "$(dirname $0)"/..; pwd)
. "${KAZ_ROOT}/bin/.commonFunctions.sh"
PRG=$(basename $0)
QUIET=1
usage() {
echo "${PRG} [OPTIONS] [envname ...]
@@ -22,9 +23,10 @@ for ARG in "$@"; do
if [ -n "${DIRECTORYARG}" ]; then # après un -d
SUBDIRECTORY="${ARG}"
DIRECTORYARG=
elif [ -n "${DIRECTORYARG}" ]; then # après un -e
elif [ -n "${ECHOVARARG}" ]; then # après un -e
VARTOECHO="${ARG}"
ECHOVARARG=
QUIET="/dev/null" # pour ne pas avoir d'autres bruits ...
else
case "${ARG}" in
@@ -35,8 +37,9 @@ for ARG in "$@"; do
'-n' | '--simu')
SIMU="echo" ;;
'-e' | '--echo')
ECHOVARARG="ON ATTEND UNE UN NOM DE VARIABLE APRES CA"
;;
ECHOVARARG="ON ATTEND UNE UN NOM DE VARIABLE APRES CA" ;;
'-q' )
QUIET="/dev/null" ;;
*)
ENVFILES="${ENVFILES} ${ARG%}";;
esac
@@ -59,7 +62,7 @@ for ENVFILE in $ENVFILES; do
fi
if ! [ -f "$FILENAME" ]; then
echo "$FILENAME does not exist."
echo "$FILENAME does not exist." >& $QUIET
continue
fi