Merge "ASM #510 - textdb -pil -a command fails to add scripts with option arguments." into asm_14.3.1

Former-commit-id: ec518fe1d4 [formerly 6d55ccd32c] [formerly 1f1b831e79 [formerly 64a4a9a489b2313230f4675bc84a3a39b8667603]]
Former-commit-id: 1f1b831e79
Former-commit-id: f8e237a9bc
This commit is contained in:
Juliya Dynina 2014-05-12 09:42:07 -05:00 committed by Gerrit Code Review
commit bcd10c5a0e

View file

@ -42,6 +42,7 @@
# include path to python lib.
# 11/02/12 1236 dgilling Add --forcepractice flag to
# bypass test mode check.
# 05/09/12 16215 m.gamazaychikov Added quotes around $flag.
##############################################################################
# this allows you to run this script from outside of ./bin
@ -59,11 +60,11 @@ export PYTHONPATH=${RUN_FROM_DIR}/src:$PYTHONPATH
forcePractice="FALSE"
declare -a parsedArgs
for flag in $@; do
if [ $flag == "--forcepractice" ]; then
for flag in "$@"; do
if [ "$flag" == "--forcepractice" ]; then
forcePractice="TRUE"
else
parsedArgs=("${parsedArgs[@]}" $flag)
parsedArgs=("${parsedArgs[@]}" "$flag")
fi
done