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>
This commit is contained in:
parent
26abe8f600
commit
233e5f610c
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ IFS=$'\n'
|
||||||
name="^Name.*: (.*)$"
|
name="^Name.*: (.*)$"
|
||||||
size="^Installed Size.*: (.*) KiB$"
|
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
|
for line in $(LANG=C pacman -Qi $PACMAN_OPTS); do
|
||||||
if [[ $line =~ $name ]]; then
|
if [[ $line =~ $name ]]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue