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