diff --git a/test.sh b/test.sh index 2adf0e4..15b1cbd 100755 --- a/test.sh +++ b/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