Skip to content

Commit

Permalink
Fixed languagetool-org/languagetool/languagetool-org#1150
Browse files Browse the repository at this point in the history
  • Loading branch information
InnovativeInventor authored and danielnaber committed Aug 17, 2018
1 parent 854ce47 commit 1774bd2
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,8 @@ detect_screen() {
if ! [ "$(type -t DISPLAY)" ]; then
if [ "$command" ]; then
command="commandline"
else
command="none"
fi
display='no'
fi
Expand All @@ -414,10 +416,8 @@ postinstall_command () {
check_command_line
elif [ "$command" = server ] || [ "$command" = web ]; then
cmd="languagetool-server"
elif [ "$command" = none ] || [ "$command" = N ] || [ "$command" = n ]; then
cmd=""
else
cmd="languagetool"
cmd=""
fi
}

Expand All @@ -440,8 +440,10 @@ build_or_install_loud () {
else
install
postinstall_command
echo "Running $cmd, press CTRL-C to cancel"
java -jar "$RELEASE-$version"/$cmd.jar $file
if [ "$cmd" ]; then
echo "Running $cmd, press CTRL-C to cancel"
java -jar "$RELEASE-$version"/$cmd.jar $file
fi
fi
}

Expand All @@ -454,8 +456,10 @@ build_or_install_quiet () {
else
install_quiet
postinstall_command
echo "Running $cmd, press CTRL-C to cancel"
java -jar "$RELEASE-$version"/$cmd.jar
if [ "$cmd" ]; then
echo "Running $cmd, press CTRL-C to cancel"
java -jar "$RELEASE-$version"/$cmd.jar
fi
fi
}

Expand Down

0 comments on commit 1774bd2

Please sign in to comment.