nohup is my friend

This commit is contained in:
southerntofu 2020-04-17 23:37:19 -04:00
parent 029c9eedc0
commit ea9c420fd4
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,8 @@ echo "$branch"
[[ $? != 0 ]] && echo "[$p_name] PULL FAILED" && exit 1
echo "[$p_name] RUN"
fi
(GITBUILDDIR="$BASEDIR" $BASEDIR/$p_name $p_name) &
# Run in background and redirect output to $p_name.log
(GITBUILDDIR="$BASEDIR" nohup $BASEDIR/$p_name $p_name > $BASEDIR/$p_name.log 2> $BASEDIR/$p_name.err) &
done
rm $BASEDIR/.LOCK