Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
bchurchill committed Apr 25, 2016
1 parent 851b61f commit 66c399a
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ function show_help {
echo ""
}

function error {
echo "Configure failed! Fix errors and run again."
echo ""
rm -f stoke_config
show_help
exit
}

## START

echo ""
Expand All @@ -31,8 +39,7 @@ while :; do
;;
-?*)
echo "WARNING: unknown option $1"
echo "./configure failed"
show_help
error
exit
;;
*)
Expand All @@ -41,7 +48,7 @@ while :; do
done

## Write options to config file
echo "MISC_OPTIONS=\"$MISC_OPTIONS\"" >> .stoke_config
echo "MISC_OPTIONS=$MISC_OPTIONS" >> .stoke_config

## All we're going to do is figure out what platform you're on, buddy.

Expand Down

0 comments on commit 66c399a

Please sign in to comment.