From 0db70e3e3fd3fba95c6dc314048b0ecb5b7d3567 Mon Sep 17 00:00:00 2001 From: Stephane Peter Date: Thu, 11 Jan 2007 02:29:41 +0000 Subject: Quote variables for increased compatibility. --- makeself-header.sh | 8 ++++---- 1 file 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 " "\` -- cgit v1.2.1