Update test.sh
This commit is contained in:
10
test.sh
10
test.sh
@@ -18,12 +18,12 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
while getopts ':rabc' flag; do
|
while getopts ':abcr' flag; do
|
||||||
case "${flag}" in
|
case "${flag}" in
|
||||||
r) echo "R" ;;
|
r) echo "R=${flag[r]}" ;;
|
||||||
a) echo "A" ;;
|
a) echo "A=${flag[a]}" ;;
|
||||||
b) echo "B" ;;
|
b) echo "B=${flag[b]}" ;;
|
||||||
c) echo "C" ;;
|
c) echo "C=${flag[c]}" ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user