Skip to content

Commit

Permalink
Fix saving of conf file when one doesn't exist already
Browse files Browse the repository at this point in the history
  • Loading branch information
tgm4883 committed Feb 22, 2019
1 parent 67fed28 commit df4d510
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,7 @@ else
echo "Not downloading latest kernel\n"
fi


if [ "$setupconfig" = "no" ]; then
if [ "$setupconfig" = "no" -o ! -e setup.conf ]; then
read -rp "Do you want to save your answers to setup.conf? (type yes or no) " saveconfig;echo
if [ "$saveconfig" = "yes" ]; then
echo "Saving answers to setup.conf\n"
Expand Down

0 comments on commit df4d510

Please sign in to comment.