diff options
author | Peter Jones <pjones@redhat.com> | 2008-03-14 13:31:29 -0400 |
---|---|---|
committer | Peter Jones <pjones@pjones2.localdomain> | 2008-03-14 13:31:29 -0400 |
commit | 301797a84161f0529e5c735b92813b19a8393ebc (patch) | |
tree | 5fc9294a88395dc552fa8fa20fc2e3fda4c55399 /scripts/upd-updates | |
parent | 58d2be506c5be912ea69550daaa25f83af769ba9 (diff) | |
download | anaconda-301797a84161f0529e5c735b92813b19a8393ebc.tar.gz anaconda-301797a84161f0529e5c735b92813b19a8393ebc.tar.xz anaconda-301797a84161f0529e5c735b92813b19a8393ebc.zip |
Fix shell quoting on numbers > 9, and fix an error message.
Diffstat (limited to 'scripts/upd-updates')
-rwxr-xr-x | scripts/upd-updates | 6 |
1 files changed, 3 insertions, 3 deletions
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 |