diff options
author | jlam <jlam> | 2006-07-13 15:48:07 +0000 |
---|---|---|
committer | jlam <jlam> | 2006-07-13 15:48:07 +0000 |
commit | 15df77c05e2ab8a1904a4ee6ae24a48ae4dbb1d9 (patch) | |
tree | 6366a6b3e7ffb9ccf3256a7709466910c0cb64fd /mk/checksum | |
parent | a6b6cb1f94cab7f7573f4bc64c0d62cd36a3c6c5 (diff) | |
download | pkgsrc-15df77c05e2ab8a1904a4ee6ae24a48ae4dbb1d9.tar.gz |
Add a few more double-quotes around eval'ed variables.
Diffstat (limited to 'mk/checksum')
-rwxr-xr-x | mk/checksum/checksum | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mk/checksum/checksum b/mk/checksum/checksum index 070b9792ced..bbfb57d0b3f 100755 --- a/mk/checksum/checksum +++ b/mk/checksum/checksum @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: checksum,v 1.1 2006/07/13 14:02:34 jlam Exp $ +# $NetBSD: checksum,v 1.2 2006/07/13 15:48:07 jlam Exp $ # # Copyright (c) 2006 The NetBSD Foundation, Inc. # All rights reserved. @@ -128,14 +128,14 @@ ${CAT} $distinfo | ${TEST} "$d_alg" = "$algorithm" || continue fi - eval "tmp=\$_alg_${d_alg}" + eval "tmp=\"\$_alg_${d_alg}\"" ${TEST} -n "$tmp" || eval "_alg_${d_alg}=\"$@\"" d_file="${d_file#(}"; d_file="${d_file%)}" for file in "$@"; do ${TEST} "$d_file" = "$file" || continue - eval "tmp=\$_alg_${d_alg}" + eval "tmp=\"\$_alg_${d_alg}\"" case "$tmp" in "$file"|"$file "*) tmp_pre= ;; *" $file") tmp_pre="${tmp%% $file}" ;; @@ -163,11 +163,11 @@ ${CAT} $distinfo | break done - eval "tmp=\$_alg_${d_alg}" + eval "tmp=\"\$_alg_${d_alg}\"" ${TEST} -n "$tmp" || eval "_alg_${d_alg}=DONE" done if ${TEST} -n "$algorithm"; then - eval "tmp=\$_alg_${algorithm}" + eval "tmp=\"\$_alg_${algorithm}\"" ${TEST} -n "$tmp" || tmp="$@" if ${TEST} "$tmp" != DONE; then for file in $tmp; do |