aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xshutdown-rofi8
1 files 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 <https://www.gnu.org/licenses/>.
-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