summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-11-08 07:23:12 -0300
committerEuAndreh <eu@euandre.org>2024-11-08 07:23:12 -0300
commitd63e2b55581b5ff65e8b524a65a70650e3e32f71 (patch)
tree99ad48055b3f2a10bcf0668243737f7d89f111f0 /src
parentsrc/untill: Add -q option, remove -h (diff)
downloadeut-d63e2b55581b5ff65e8b524a65a70650e3e32f71.tar.gz
eut-d63e2b55581b5ff65e8b524a65a70650e3e32f71.tar.xz
src/statusf: Fix use of $STATUS
Diffstat (limited to 'src')
-rwxr-xr-xsrc/statusf4
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"