mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-02-11 08:54:38 +01:00
Use FORMAT variable name in package_client.sh
The format is used several times, avoid using "$2" directly.
This commit is contained in:
@@ -14,9 +14,9 @@ fi
|
||||
|
||||
FORMAT=$2
|
||||
|
||||
if [[ "$2" != zip && "$2" != tar.gz ]]
|
||||
if [[ "$FORMAT" != zip && "$FORMAT" != tar.gz ]]
|
||||
then
|
||||
echo "Invalid format (expected zip or tar.gz): $2" >&2
|
||||
echo "Invalid format (expected zip or tar.gz): $FORMAT" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user