aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2022-10-17 22:32:54 -0700
committerGravatar Tom Willemse2022-10-17 22:32:54 -0700
commit6ceb2edf16574973dfd81ad93c8c75863a40f7c1 (patch)
tree6effd868a1a7cfd2e1bdafd93fc05594f4c190db
parentba138ae104edfdbdf0c2e9b3be2d01b00f123ff4 (diff)
downloadshutdown-rofi-6ceb2edf16574973dfd81ad93c8c75863a40f7c1.tar.gz
shutdown-rofi-6ceb2edf16574973dfd81ad93c8c75863a40f7c1.zip
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.
-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