Browse files

Batch: Fix play again prompt

Initial value of ng_again was undefined, caused all sorts of trouble if
nothing was entered at the prompt.
  • Loading branch information...
DarthJDG committed Jul 28, 2016
1 parent 1b9ce74 commit cc9f4201e626a53158006990c11a166137c65acb
Showing with 2 additions and 1 deletion.
  1. +2 −1 numguess.bat
@@ -100,9 +100,10 @@ echo Try harder, you can do better!
+set ng_again="n"
set /p ng_again="Play again [y/N]? "
-if /i %ng_again% == y goto new_game
+if /i "%ng_again%"=="y" goto new_game
echo Okay, bye.

0 comments on commit cc9f420

Please sign in to comment.