File tree 4 files changed +12
-4
lines changed
4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -70,4 +70,6 @@ case "$BTRFS_LOG_OUTPUT" in
70
70
* ) cat;;
71
71
esac
72
72
73
- exit 0
73
+ # Capture exit code from the piped command above and return it
74
+ EXIT_STATUS=${PIPESTATUS[0]}
75
+ exit $EXIT_STATUS
Original file line number Diff line number Diff line change @@ -40,4 +40,6 @@ case "$BTRFS_LOG_OUTPUT" in
40
40
* ) cat;;
41
41
esac
42
42
43
- exit 0
43
+ # Capture exit code from the piped command above and return it
44
+ EXIT_STATUS=${PIPESTATUS[0]}
45
+ exit $EXIT_STATUS
Original file line number Diff line number Diff line change @@ -70,4 +70,6 @@ case "$BTRFS_LOG_OUTPUT" in
70
70
* ) cat;;
71
71
esac
72
72
73
- exit 0
73
+ # Capture exit code from the piped command above and return it
74
+ EXIT_STATUS=${PIPESTATUS[0]}
75
+ exit $EXIT_STATUS
Original file line number Diff line number Diff line change @@ -41,4 +41,6 @@ case "$BTRFS_LOG_OUTPUT" in
41
41
* ) cat;;
42
42
esac
43
43
44
- exit 0
44
+ # Capture exit code from the piped command above and return it
45
+ EXIT_STATUS=${PIPESTATUS[0]}
46
+ exit $EXIT_STATUS
You can’t perform that action at this time.
0 commit comments