Commit 08d9f08a authored by Venkat Malladi's avatar Venkat Malladi
Browse files

Fix parsing of options and spacing.

parent 54b9865d
......@@ -69,7 +69,7 @@ run_main() {
# Parsing options
OPTIND=1 # Reset OPTIND
while getopts :gh opt
while getopts :g:h opt
do
case $opt in
g) gtf=$OPTARG;;
......@@ -97,7 +97,7 @@ run_main() {
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]
then
run_main
run_main "$@"
if [ $? -gt 0 ]
then
exit 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment