diff options
| author | Stefan Bodewig <bodewig@apache.org> | 2002-07-12 15:15:46 +0000 |
|---|---|---|
| committer | Stefan Bodewig <bodewig@apache.org> | 2002-07-12 15:15:46 +0000 |
| commit | 4e461155a58e1ddeeda7b58b61b40cddcf293b06 (patch) | |
| tree | f3bdb783f1988e125d0424541aa3e0e4b3906281 /src/script | |
| parent | 0dd749e0a91322e027fd13afb83df56f0b1e49b5 (diff) | |
| download | ant-4e461155a58e1ddeeda7b58b61b40cddcf293b06.tar.gz | |
More quotes.
I think it has been Diane who said we could almost put the entire
script into quotes - she's been right.
PR: 9550
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273099 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/script')
| -rw-r--r-- | src/script/ant | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script/ant b/src/script/ant index 7c78cf660..031a4fa08 100644 --- a/src/script/ant +++ b/src/script/ant @@ -39,8 +39,8 @@ if [ -z "$ANT_HOME" ] ; then ANT_HOME=/opt/ant fi - if [ -d ${HOME}/opt/ant ] ; then - ANT_HOME=${HOME}/opt/ant + if [ -d "${HOME}/opt/ant" ] ; then + ANT_HOME="${HOME}/opt/ant" fi ## resolve links - $0 may be a link to ant's home @@ -66,7 +66,7 @@ if [ -z "$ANT_HOME" ] ; then # make it fully qualified ANT_HOME=`cd "$ANT_HOME" && pwd` - cd $saveddir + cd "$saveddir" fi # For Cygwin, ensure paths are in UNIX format before anything is touched |
