summaryrefslogtreecommitdiff
path: root/update-all.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-11-08 10:24:17 +0100
committerErich Eckner <git@eckner.net>2019-11-08 10:24:17 +0100
commit093daa406d575fdbbd84b65f770d4e7b5ba01b14 (patch)
tree65e5cd1b824fd931ba229396702e7a6c639a1c73 /update-all.in
parentcf8597ed38c808f717db86a42689c0b483b8487a (diff)
downloadupdate-all-093daa406d575fdbbd84b65f770d4e7b5ba01b14.tar.xz
update-all.in: return $err, not $?
Diffstat (limited to 'update-all.in')
-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