Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts/repo-add.sh.in
diff options
context:
space:
mode:
authorCedric Staniewski <cedric@gmx.ca>2009-05-12 11:01:58 +0200
committerDan McGee <dan@archlinux.org>2009-05-18 23:04:28 -0500
commit212ea8a9ed342efe2d74655cdebf668cc0cc7ce2 (patch)
tree9eff45488b6657c6dbaef4b36c35679b2c58f349 /scripts/repo-add.sh.in
parenta812ad4ea4faeb5cb229a574adef47764840f890 (diff)
repo-add: fix -n tests which are applicable only to strings
Signed-off-by: Cedric Staniewski <cedric@gmx.ca> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts/repo-add.sh.in')
-rw-r--r--scripts/repo-add.sh.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in
index 2390a92c..7dfb9e2d 100644
--- a/scripts/repo-add.sh.in
+++ b/scripts/repo-add.sh.in
@@ -245,8 +245,8 @@ db_write_entry()
echo -e "%VERSION%\n$pkgver\n" >>desc
[ -n "$pkgdesc" ] && echo -e "%DESC%\n$pkgdesc\n" >>desc
write_list_entry "GROUPS" "$_groups" "desc"
- [ -n $csize ] && echo -e "%CSIZE%\n$csize\n" >>desc
- [ -n $size ] && echo -e "%ISIZE%\n$size\n" >>desc
+ [ -n "$csize" ] && echo -e "%CSIZE%\n$csize\n" >>desc
+ [ -n "$size" ] && echo -e "%ISIZE%\n$size\n" >>desc
# compute checksums
msg2 "$(gettext "Computing md5 checksums...")"