summaryrefslogtreecommitdiff
path: root/makeself-header.sh
diff options
context:
space:
mode:
Diffstat (limited to 'makeself-header.sh')
-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 " "\`