summaryrefslogtreecommitdiff
path: root/src/statusf
diff options
context:
space:
mode:
Diffstat (limited to 'src/statusf')
-rwxr-xr-xsrc/statusf6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/statusf b/src/statusf
new file mode 100755
index 0000000..2e799cf
--- /dev/null
+++ b/src/statusf
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -eu
+
+STATUS=0
+"$@" || STATUS=$?
+printf '%s\n' > "$1"