ASM #510 - textdb -pil -a command fails to add scripts with option

arguments.

Change-Id: I3f6c1c334db1100af0cb137f2f0a1a856564aaf4

Former-commit-id: c9df02db64 [formerly 97ec336416 [formerly 77b054caca0aa54d51fa947a4a8aa041ef0cdcab]]
Former-commit-id: 97ec336416
Former-commit-id: 6497950f3d
This commit is contained in:
Michael Gamazaychikov 2014-05-09 07:44:25 +01:00
parent 3be98fa48b
commit a7c824d033

View file

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