summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2005-09-02 01:33:59 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2005-09-02 01:33:59 +0000
commit185f6fcbaea075f92a12e29e8f86551d9da5570c (patch)
tree2137feb57008900c68efc6b04b7f516e599d94a9
parent45b83e3a4dc979f2a4b8619b371272c4c499a71e (diff)
Fix bug
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@8 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rwxr-xr-xrecvconf2
1 files changed, 1 insertions, 1 deletions
diff --git a/recvconf b/recvconf
index 1f3b7ae..e2f7de3 100755
--- a/recvconf
+++ b/recvconf
@@ -143,7 +143,7 @@ if [ -s "$tempscript" ]; then
## Post-copying commands to be run, run them here. Only display output if they exit with $? > 0
while read command; do
printf "Running postcommand \`%s' on %s.\n" "$command" "$(hostname -s)" >&2
- if ! eval -- "cd / && env -i $command" > "$tempoutput" 2>&1; then
+ if ! eval -- "(cd / && env -i $command)" > "$tempoutput" 2>&1; then
printf "Error, postcommand \`%s' on %s failed. Output follows:\n" "$command" "$(hostname -s)" >&2
cat -- "$tempoutput" >&2
exit 1