fix(quickemu): resolve shellcheck SC2317 info about usage()
https://www.shellcheck.net/wiki/SC2317
This commit is contained in:
parent
aca168be60
commit
84c71e9cfc
3
quickemu
3
quickemu
|
@ -1647,7 +1647,6 @@ fi
|
||||||
# Take command line arguments
|
# Take command line arguments
|
||||||
if [ $# -lt 1 ]; then
|
if [ $# -lt 1 ]; then
|
||||||
usage
|
usage
|
||||||
exit 0
|
|
||||||
else
|
else
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
|
@ -1687,12 +1686,10 @@ else
|
||||||
else
|
else
|
||||||
echo "screenpct invalid must be 25 <= pct < 100"
|
echo "screenpct invalid must be 25 <= pct < 100"
|
||||||
usage
|
usage
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "screenpct needs to be an integer in range 25 <= pct < 100"
|
echo "screenpct needs to be an integer in range 25 <= pct < 100"
|
||||||
usage
|
usage
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
shift
|
shift
|
||||||
shift;;
|
shift;;
|
||||||
|
|
Loading…
Reference in New Issue