Skip to content

Commit

Permalink
Throw error if other options are given with prebuilt-binary
Browse files Browse the repository at this point in the history
  • Loading branch information
shirok committed Jul 20, 2024
1 parent 63fc548 commit 8180b79
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions download-and-install-gauche.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ if [ ! -z "$configure_opts" ]; then
fi

if [ "$binary" = 'true' ]; then
if [ $version != 'latest' -o -n $do_test -o -n $configure_opts ]; then
echo "If prebuilt-binary is true, no ther option should be given."
exit 1
fi

platform=`uname -s`
case "$platform" in
Linux)
Expand Down

0 comments on commit 8180b79

Please sign in to comment.