Skip to content
Snippets Groups Projects
Commit eb172dd7 authored by Richard Hartmann's avatar Richard Hartmann
Browse files

Fix option parsing

Previously, only -d would shift parameters from the option stack
correctly.
parent bcf33dd4
No related branches found
No related tags found
No related merge requests found
...@@ -25,12 +25,12 @@ while getopts "c:dv" flag; do ...@@ -25,12 +25,12 @@ while getopts "c:dv" flag; do
if [ "$1" = '-d' ] || [ "$1" = '--debug' ]; then if [ "$1" = '-d' ] || [ "$1" = '--debug' ]; then
set -vx set -vx
VCSH_DEBUG=1 VCSH_DEBUG=1
shift 1
elif [ "$1" = '-v' ];then elif [ "$1" = '-v' ];then
VCSH_VERBOSE=1 VCSH_VERBOSE=1
elif [ "$1" = '-c' ];then elif [ "$1" = '-c' ];then
VCSH_OPTION_CONFIG=$OPTARG VCSH_OPTION_CONFIG=$OPTARG
fi fi
shift 1
done done
source_all() { source_all() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment