Use FORMAT variable name in package_client.sh
The format is used several times, avoid using "$2" directly.
This commit is contained in:
parent
a18ed1ee7a
commit
ee9f7126ff
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user