Skip to content

Commit

Permalink
Merge pull request #267 from darabos/patch-1
Browse files Browse the repository at this point in the history
Let bash-template work when the directory contains spaces.
  • Loading branch information
muuki88 committed Jun 6, 2014
2 parents dab0f55 + 8ed5bd0 commit a1d9600
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ realpath () {
TARGET_FILE="$1"
CHECK_CYGWIN="$2"

cd $(dirname "$TARGET_FILE")
cd "$(dirname "$TARGET_FILE")"
TARGET_FILE=$(basename "$TARGET_FILE")

COUNT=0
while [ -L "$TARGET_FILE" -a $COUNT -lt 100 ]
do
TARGET_FILE=$(readlink "$TARGET_FILE")
cd $(dirname "$TARGET_FILE")
cd "$(dirname "$TARGET_FILE")"
TARGET_FILE=$(basename "$TARGET_FILE")
COUNT=$(($COUNT + 1))
done
Expand Down Expand Up @@ -132,18 +132,19 @@ execRunner () {
}
addJava () {
dlog "[addJava] arg = '$1'"
java_args=( "${java_args[@]}" "$1" )
java_args+=( "$1" )
}
addApp () {
dlog "[addApp] arg = '$1'"
app_commands=( "${app_commands[@]}" "$1" )
app_commands+=( "$1" )
}
addResidual () {
dlog "[residual] arg = '$1'"
residual_args=( "${residual_args[@]}" "$1" )
residual_args+=( "$1" )
}
addDebugger () {
addJava "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=$1"
addJava "-Xdebug"
addJava "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=$1"
}
# a ham-fisted attempt to move some memory settings in concert
# so they need not be messed around with individually.
Expand Down

0 comments on commit a1d9600

Please sign in to comment.