From 301797a84161f0529e5c735b92813b19a8393ebc Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Fri, 14 Mar 2008 13:31:29 -0400 Subject: Fix shell quoting on numbers > 9, and fix an error message. --- scripts/upd-updates | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/upd-updates') diff --git a/scripts/upd-updates b/scripts/upd-updates index 3a724c27f..62c34057c 100755 --- a/scripts/upd-updates +++ b/scripts/upd-updates @@ -42,8 +42,8 @@ if [ "$OK" == "no" ]; then fi n=1 -while [ -n "$(eval echo '$'$n)" ]; do - arg="$(eval echo '$'$n)" +while [ -n "$(eval echo '${'$n'}')" ]; do + arg="$(eval echo '${'$n'}')" [ ${arg} == "--help" -o ${arg} == "-h" ] && usage 0 if [ ! -r ${arg} ]; then @@ -55,7 +55,7 @@ done TMPDIR=$(mktemp -d) if [ ! -d ${TMPDIR} ]; then - echo "upd-updates: cannot make tmpdir ${arg}" 1>&2 + echo "upd-updates: cannot make tmpdir ${TMPDIR}" 1>&2 exit 4 fi -- cgit