diff options
author | EuAndreh <eu@euandre.org> | 2024-11-08 07:23:12 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-11-08 07:23:12 -0300 |
commit | d63e2b55581b5ff65e8b524a65a70650e3e32f71 (patch) | |
tree | 99ad48055b3f2a10bcf0668243737f7d89f111f0 /src | |
parent | src/untill: Add -q option, remove -h (diff) | |
download | eut-d63e2b55581b5ff65e8b524a65a70650e3e32f71.tar.gz eut-d63e2b55581b5ff65e8b524a65a70650e3e32f71.tar.xz |
src/statusf: Fix use of $STATUS
Diffstat (limited to 'src')
-rwxr-xr-x | src/statusf | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/statusf b/src/statusf index 2e799cf..a82e14e 100755 --- a/src/statusf +++ b/src/statusf @@ -1,6 +1,8 @@ #!/bin/sh set -eu +F="$1" +shift STATUS=0 "$@" || STATUS=$? -printf '%s\n' > "$1" +printf '%s\n' "$STATUS" > "$F" |