mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-20 01:36:32 +00:00
chore: add missing :
after options in publish scripts (#1134)
Not including the colon means that the option parsing mechanism is not expecting an argument for the `-t` and the `-p` option (for `bintray-debian.sh` and `aws-s3.sh` respectively), and thus `$OPTARG` will be undefined. Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
This commit is contained in:
parent
8d71307831
commit
311dcd27a8
@ -39,7 +39,7 @@ ARGV_BUCKET=""
|
|||||||
ARGV_VERSION=""
|
ARGV_VERSION=""
|
||||||
ARGV_PRODUCT_NAME=""
|
ARGV_PRODUCT_NAME=""
|
||||||
|
|
||||||
while getopts ":f:b:v:p" option; do
|
while getopts ":f:b:v:p:" option; do
|
||||||
case $option in
|
case $option in
|
||||||
f) ARGV_FILE="$OPTARG" ;;
|
f) ARGV_FILE="$OPTARG" ;;
|
||||||
b) ARGV_BUCKET="$OPTARG" ;;
|
b) ARGV_BUCKET="$OPTARG" ;;
|
||||||
|
@ -41,7 +41,7 @@ ARGV_ARCHITECTURE=""
|
|||||||
ARGV_COMPONENT_NAME=""
|
ARGV_COMPONENT_NAME=""
|
||||||
ARGV_RELEASE_TYPE=""
|
ARGV_RELEASE_TYPE=""
|
||||||
|
|
||||||
while getopts ":f:v:r:c:t" option; do
|
while getopts ":f:v:r:c:t:" option; do
|
||||||
case $option in
|
case $option in
|
||||||
f) ARGV_FILE="$OPTARG" ;;
|
f) ARGV_FILE="$OPTARG" ;;
|
||||||
v) ARGV_VERSION="$OPTARG" ;;
|
v) ARGV_VERSION="$OPTARG" ;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user