Update test.sh
This commit is contained in:
2
test.sh
2
test.sh
@@ -23,7 +23,7 @@ while getopts ':a:b:c:r:' flag; do
|
||||
r) r=$OPTARG; echo "R - $r" ;;
|
||||
a) a=$OPTARG; echo "A - $a" ;;
|
||||
b) a=$OPTARG; echo "B - $b" ;;
|
||||
c) a=$OPTARG; echo "C - $c" ;;
|
||||
c) c=$OPTARG; echo "C - $c" ;;
|
||||
:) echo "Invalid option: $OPTARG requires an argument" 1>&2 ;;
|
||||
esac
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user