summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--update-all.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/update-all.in b/update-all.in
index 7074c42..6eea1a7 100644
--- a/update-all.in
+++ b/update-all.in
@@ -18,7 +18,7 @@ if [ "$#" -eq 2 ]; then
err=$?
if [ "${err}" -ne 0 ] \
&& [ -d "$2" ]; then
- printf '%s\n' "$?" > "$2/$1"
+ printf '%s\n' "${err}" > "$2/$1"
fi
exit ${err}
fi