From a0ed542851d7698d8e6dcf84956895792166046d Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 25 Apr 2019 22:44:24 -0400 Subject: session_exec(): Make "set -e"-safe --- (limited to 'src') 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 } -- cgit v0.9.1