mirror of
https://github.com/bytedream/scripts.git
synced 2025-05-09 20:25:12 +02:00
Fixed typo & refactoring
This commit is contained in:
parent
30a87878fe
commit
abd3ce4763
@ -4,14 +4,14 @@ while getopts ":o:output:" opt; do
|
|||||||
case $opt in
|
case $opt in
|
||||||
o | output)
|
o | output)
|
||||||
output=$OPTARG
|
output=$OPTARG
|
||||||
|
shift $((OPTIND -1))
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unsupported argument was given (only '-o' is allowd)"
|
echo "Unsupported argument was given (only '-o' is allowed)"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
shift $((OPTIND -1))
|
|
||||||
|
|
||||||
|
|
||||||
if [ -z $output ]; then
|
if [ -z $output ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user