summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-05-07 01:49:43 +0200
committerDan McGee <dan@archlinux.org>2012-05-21 00:30:41 +0200
commit233e5f610c409052d4f88382ce5fe97f54fd6e6c (patch)
tree95570b1f166eb045ed2a1d157d052c0817c4addf /contrib
parent26abe8f6004777ba49777eaaec3bc0a47f50fcb2 (diff)
downloadpacman-233e5f610c409052d4f88382ce5fe97f54fd6e6c.tar.gz
pacman-233e5f610c409052d4f88382ce5fe97f54fd6e6c.tar.xz
contrib/pacsysclean: avoid setting bogus PACMAN_OPTS
PACMAN_OPTS would be erroneously set when it was undefined, causing pacsysclean to error out. Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/pacsysclean.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pacsysclean.in b/contrib/pacsysclean.in
index a4accd56..9e25d39e 100755
--- a/contrib/pacsysclean.in
+++ b/contrib/pacsysclean.in
@@ -27,7 +27,7 @@ IFS=$'\n'
name="^Name.*: (.*)$"
size="^Installed Size.*: (.*) KiB$"
-[[ $PACMAN_OPTS != -* ]] && PACMAN_OPTS="-$PACMAN_OPTS"
+[[ $PACMAN_OPTS && $PACMAN_OPTS != -* ]] && PACMAN_OPTS="-$PACMAN_OPTS"
for line in $(LANG=C pacman -Qi $PACMAN_OPTS); do
if [[ $line =~ $name ]]; then