Skip to content

Commit

Permalink
/dev/tty --> /dev/stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
klugem committed Nov 19, 2019
1 parent e972901 commit 6ba95be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions watchdog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ if [ $AUTO_DETACH_COUNT -eq 1 ]; then
done
exit $RET
else
if [ -e "/dev/tty" ]; then
setsid java -jar "$SCRIPT_FOLDER/jars/watchdog.jar" $@ </dev/tty &
if [ -e "/dev/stdin" ]; then
setsid java -jar "$SCRIPT_FOLDER/jars/watchdog.jar" $@ </dev/stdin &
else
setsid java -jar "$SCRIPT_FOLDER/jars/watchdog.jar" $@ &
fi
Expand Down

0 comments on commit 6ba95be

Please sign in to comment.