Permalink
Browse files

Update JSON.sh

Parse options only when script is being executed
  • Loading branch information...
1 parent 8eadf00 commit ea08d6e4b9d6d6d8db0e2398778e47d14fbbbcd5 @jwerle jwerle committed May 26, 2014
Showing with 1 addition and 2 deletions.
  1. +1 −2 JSON.sh
View
@@ -183,9 +183,8 @@ parse () {
esac
}
-parse_options "$@"
-
if ([ "$0" = "$BASH_SOURCE" ] || ! [ -n "$BASH_SOURCE" ]);
then
+ parse_options "$@"
tokenize | parse
fi

0 comments on commit ea08d6e

Please sign in to comment.