summaryrefslogtreecommitdiffstats
path: root/src/session.sh
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-25 22:44:24 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-25 22:44:24 (EDT)
commita0ed542851d7698d8e6dcf84956895792166046d (patch)
treecb651d04e3fbe8769ea2669e7b883de04ee3111a /src/session.sh
parent06f244c3b522f57fbc32e3964006ea89d5a68ba4 (diff)
session_exec(): Make "set -e"-safe
Diffstat (limited to 'src/session.sh')
-rw-r--r--src/session.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/session.sh b/src/session.sh
index 83198f6..32400ce 100644
--- a/src/session.sh
+++ b/src/session.sh
@@ -213,7 +213,8 @@ session_exec()
args="${args} ${arg}"
done
session_dir="/prokit/sessions/${session_id}/wd"
- chroot "${session_root}" /bin/sh -c "cd ${session_dir}; ${args}"
+ chroot "${session_root}" /bin/sh -c "cd ${session_dir}; ${args}" || \
+ return ${?}
- return ${?}
+ return 0
}