Skip to content

Commit

Permalink
fix: exit code test
Browse files Browse the repository at this point in the history
  • Loading branch information
chornberger-c2c committed May 8, 2023
1 parent d8a329a commit 437c83a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker-entrypoint.d/kino.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ EOF
}

fortunex() {
/usr/games/fortune -s | /usr/games/cowsay -s -f "$(shuf -n 1 -e "$(/usr/games/cowsay -l)")"
[ $? -ne 0 ] && fortunex
if [ ! /usr/games/fortune -s | /usr/games/cowsay -s -f "$(shuf -n 1 -e "$(/usr/games/cowsay -l)")" ]; then
fortunex
fi
}

html_end() {
Expand Down

0 comments on commit 437c83a

Please sign in to comment.