From a6769ebf0338188a44a260d99f024bf2bf954a44 Mon Sep 17 00:00:00 2001 From: Pavel Hofman Date: Wed, 11 Nov 2009 12:40:35 +0100 Subject: variable assigment syntax error --- src/core/libs/lib-misc.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/core/libs/lib-misc.sh b/src/core/libs/lib-misc.sh index eec5a2e..7129f58 100644 --- a/src/core/libs/lib-misc.sh +++ b/src/core/libs/lib-misc.sh @@ -30,7 +30,7 @@ run_controlled () # run a process in the background, and log it's stdout and stderr to a specific logfile -# returncode is stored in $_exitcode +# returncode is stored in BACKGROUND_EXIT # pid of the backgrounded wrapper process is stored in BACKGROUND_PID (this is _not_ the pid of $2) # $1 identifier -> WARNING: do never ever use -'s or other fancy characters here. only numbers, letters and _ please. (because $_exitcode must be a valid bash variable!) # $2 command (will be eval'ed) @@ -48,7 +48,7 @@ run_background () [ -f $3 ] && echo -e "\n\n\n" >>$3 echo "STARTING $1 . Executing $2 >>$3 2>&1\n" >> $3; eval "$2" >>$3 2>&1 - $BACKGROUND_EXIT=$? + BACKGROUND_EXIT=$? debug 'MISC' "run_background done with $1: exitcode (\$$1_exitcode): ${!var_exit} .Logfile $3" echo >> $3 rm -f $RUNTIME_DIR/aif-$1-running -- cgit v1.2.3-54-g00ecf