Remove empty lines from options selection

This commit is contained in:
Riyyi
2021-02-25 01:10:08 +01:00
parent 34c9c74c37
commit 6c484edce2
+1 -1
View File
@@ -15,7 +15,7 @@ commands="\
 Reboot:systemctl reboot  Reboot:systemctl reboot
 Logout:$logout"  Logout:$logout"
choice=$(echo "$commands" | cut -d ':' -f 1 | rofi -dmenu -i -p "System") || exit 0 choice=$(echo "$commands" | cut -d ':' -f 1 | rofi -no-fixed-num-lines -dmenu -i -p "System") || exit 0
exec=$(echo "$commands" | grep "^$choice" | cut -d ':' -f 2-) exec=$(echo "$commands" | grep "^$choice" | cut -d ':' -f 2-)