From a611b0ac81d56dd804e163f7fb87e222a1ba5131 Mon Sep 17 00:00:00 2001 From: Nazar Vinnichuk Date: Sun, 10 May 2020 23:34:51 +0300 Subject: [PATCH] Fix errors reported by shellcheck. One of these is crucial to properly display outdated packages. --- pacwall.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pacwall.sh b/pacwall.sh index bfeb9a1..43e29d5 100755 --- a/pacwall.sh +++ b/pacwall.sh @@ -96,7 +96,7 @@ generate_graph_pactree() { done if [[ -z $NO_UPDATES ]]; then - for package in "$(checkupdates | sed -e "s/ .*$//")"; do + for package in $(checkupdates | sed -e "s/ .*$//"); do echo "\"$package\" [color=\"$UNODE\"]" >> pkgcolors done fi @@ -292,7 +292,7 @@ admin_mode() { # then execute using sudo exec sudo -u "$(_logname)" "$0" "${prev_args[@]}" - exit -1 + exit 1 } main() {