Skip to content

Commit

Permalink
Make it an error if other opts 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 4aa2fbb
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 "$do_test" != 'false' -o -n "$configure_opts" ]; then
echo "If prebuilt-binary is true, no other option should be given."
exit 1
fi

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

0 comments on commit 4aa2fbb

Please sign in to comment.