ASM #510 - textdb -pil -a command fails to add scripts with option
arguments. Change-Id: I3f6c1c334db1100af0cb137f2f0a1a856564aaf4 Former-commit-id: 77b054caca0aa54d51fa947a4a8aa041ef0cdcab
This commit is contained in:
parent
588cfd0608
commit
c9df02db64
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue