From 6ceb2edf16574973dfd81ad93c8c75863a40f7c1 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 17 Oct 2022 22:32:54 -0700 Subject: Improve variable name ‘foo’ is completely meaningless, and I probably used it for testing. Now that I've been using it for a while and it works, testing is over and the real names should come out. --- shutdown-rofi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shutdown-rofi b/shutdown-rofi index a851db2..d610fdf 100755 --- a/shutdown-rofi +++ b/shutdown-rofi @@ -13,11 +13,11 @@ # You should have received a copy of the GNU General Public License along with # this program. If not, see . -foo=$(printf "poweroff\nreboot\nquit\nreload" | rofi -dmenu -i -no-fixed-num-lines -no-custom -p "Action") +cmd=$(printf "poweroff\nreboot\nquit\nreload" | rofi -dmenu -i -no-fixed-num-lines -no-custom -p "Action") -if [[ -n $foo ]] +if [[ -n $cmd ]] then - case "$foo" in + case "$cmd" in poweroff) poweroff ;; @@ -31,7 +31,7 @@ then herbstclient reload ;; *) - echo "Unknown command: $foo" + echo "Unknown command: $cmd" ;; esac fi -- cgit v1.3-2-g0d8e