dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit 3eaaeab31dae98505995fc12d62c9781b8a34528
parent 77ae7433197e935543f139366852d31cfd088679
Author: Chris Bracken <chris@bracken.jp>
Date:   Sun,  8 Mar 2020 09:24:31 +0000

Use POSIX shell syntax in exit_check.sh

POSIX sh doesn't support == comparisons; rather these are done using =.

Diffstat:
M.config/sway/exit_check.sh | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.config/sway/exit_check.sh b/.config/sway/exit_check.sh @@ -2,9 +2,9 @@ # Use dmenu to check if the user wants to exit i3. -while [ "$choice" != "no" -a "$choice" != "yes" ]; do - choice=$(echo -e 'no\nyes' | dmenu -p "Really exit?") +while [ "$choice" != "no" ] && [ "$choice" != "yes" ]; do + choice=$(/bin/echo -e 'no\nyes' | dmenu -p "Really exit?") done -if [ "$choice" == "yes" ]; then +if [ "$choice" = "yes" ]; then swaymsg exit fi