Use FORMAT variable name in package_client.sh

The format is used several times, avoid using "$2" directly.
This commit is contained in:
Romain Vimont 2024-11-25 09:54:55 +01:00
parent a18ed1ee7a
commit ee9f7126ff

View File

@ -14,9 +14,9 @@ fi
FORMAT=$2 FORMAT=$2
if [[ "$2" != zip && "$2" != tar.gz ]] if [[ "$FORMAT" != zip && "$FORMAT" != tar.gz ]]
then then
echo "Invalid format (expected zip or tar.gz): $2" >&2 echo "Invalid format (expected zip or tar.gz): $FORMAT" >&2
exit 1 exit 1
fi fi