Skip to content

Commit

Permalink
scripts/editConfigFile.txt: fix of a minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
h-dh committed Dec 8, 2015
1 parent 56cc921 commit 785415b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 5 additions & 3 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,10 @@ getCondaPath()

if [ -d $path ] ; then
eval ${2}=$path
return 0
fi

return
return 1
}

getSrcPath()
Expand All @@ -182,12 +183,13 @@ getSrcPath()
# is it in a conda built?
getCondaPath $0 QA_PATH

if [ ${QA_PATH} ] ; then
if getCondaPath $0 QA_PATH ; then
export QA_PATH
CONDA_ENV=t
return
fi

test ${QA_PATH} && return

local target isInvalid

if [ ${1:0:1} = '/' ] ; then
Expand Down
9 changes: 4 additions & 5 deletions scripts/editConfigFile.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#editConfigFile()
#{
# return 1 if a single parameter was passed whose value is 'disable'
retVal=0

# conversion from former usage
if [ ! -f ${CONFIG_FILE} ] ; then
Expand Down Expand Up @@ -32,10 +34,7 @@
fi
fi

test $# -eq 0 && return 0

# return 1 if a single parameter was passed whose value is 'disable'
retVal=0
test $# -eq 0 && return $retVal

# find the corresponding section in the config file
test ! -f ${CONFIG_FILE} && touch $CONFIG_FILE
Expand Down Expand Up @@ -89,7 +88,7 @@
echo ${item} >> $CONFIG_FILE
done

return retVal
return $retVal
fi

for item in $* ; do
Expand Down

0 comments on commit 785415b

Please sign in to comment.