Commit b8e3aec5 authored by Seblu's avatar Seblu
Browse files

Fix confirm loop when stdout is closed

parent 5e60f858
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@ confirm_restart() {
	if (( $confirm == 1 )); then
		while true; do
			printf 'Confirm services restart? [y|N] '
			read -r ans
			read -r ans || return 1
			case $ans in
				y|Y|yes|Yes) return 0;;
				n|N|no|No) return 1;;