diff options
author | Cedric Staniewski <cedric@gmx.ca> | 2009-05-12 11:01:58 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-05-19 06:04:28 +0200 |
commit | 212ea8a9ed342efe2d74655cdebf668cc0cc7ce2 (patch) | |
tree | 9eff45488b6657c6dbaef4b36c35679b2c58f349 | |
parent | a812ad4ea4faeb5cb229a574adef47764840f890 (diff) | |
download | pacman-212ea8a9ed342efe2d74655cdebf668cc0cc7ce2.tar.gz pacman-212ea8a9ed342efe2d74655cdebf668cc0cc7ce2.tar.xz |
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>
-rw-r--r-- | scripts/repo-add.sh.in | 4 |
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...")" |