mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-01 01:41:52 -05:00
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
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user