summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephane Peter <megastep@megastep.org>2007-01-11 02:29:41 +0000
committerStephane Peter <megastep@megastep.org>2007-01-11 02:29:41 +0000
commit0db70e3e3fd3fba95c6dc314048b0ecb5b7d3567 (patch)
treee81098b5c1d69f62f89c4befa357074df230df7c
parent7d5963552facda96f3531ace984254546ebfb43e (diff)
downloadmakeself-0db70e3e3fd3fba95c6dc314048b0ecb5b7d3567.tar.gz
Quote variables for increased compatibility.
-rwxr-xr-xmakeself-header.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/makeself-header.sh b/makeself-header.sh
index b32b667..8e19f42 100755
--- a/makeself-header.sh
+++ b/makeself-header.sh
@@ -83,13 +83,13 @@ EOH
MS_Check()
{
- OLD_PATH=\$PATH
+ OLD_PATH="\$PATH"
PATH=\${GUESS_MD5_PATH:-"\$OLD_PATH:/bin:/usr/bin:/sbin:/usr/local/ssl/bin:/usr/local/bin:/opt/openssl/bin"}
MD5_ARG=""
MD5_PATH=\`exec 2>&-; which md5sum || type md5sum\`
- test -x \$MD5_PATH || MD5_PATH=\`exec 2>&-; which md5 || type md5\`
- test -x \$MD5_PATH || MD5_PATH=\`exec 2>&-; which digest || type digest\`
- PATH=\$OLD_PATH
+ test -x "\$MD5_PATH" || MD5_PATH=\`exec 2>&-; which md5 || type md5\`
+ test -x "\$MD5_PATH" || MD5_PATH=\`exec 2>&-; which digest || type digest\`
+ PATH="\$OLD_PATH"
MS_Printf "Verifying archive integrity..."
offset=\`head -n $SKIP "\$1" | wc -c | tr -d " "\`