diff options
Diffstat (limited to 'recvconf')
-rwxr-xr-x | recvconf | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |