mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-19 19:15:08 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue