Skip to content

Commit

Permalink
Fix record.sh error checking.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hakkin committed Dec 1, 2019
1 parent 0a5f5c6 commit c17dac9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/record.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,12 @@ done
errf '[%s] %s\n' "$username" "$line"
done
)
EXIT_STATUS="${PIPESTATUS[0]}"
if [ "$PRINT_FILENAME" == "1" ];
then
printf '%s\n' "$filename"
fi
if [ "${PIPESTATUS[0]}" == "2" ];
if [ "$EXIT_STATUS" == "2" ];
then
errf '[%s] stream ended with error, restarting...\n' "$username"
continue
Expand Down

0 comments on commit c17dac9

Please sign in to comment.