From 233e5f610c409052d4f88382ce5fe97f54fd6e6c Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 6 May 2012 19:49:43 -0400 Subject: 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 Signed-off-by: Dan McGee --- contrib/pacsysclean.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2