diff options
Diffstat (limited to 'dscip')
-rwxr-xr-x | dscip | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dscip b/dscip index 6f3f542..6e3adbf 100755 --- a/dscip +++ b/dscip @@ -23,12 +23,14 @@ cd "$(dirname "$0")" ################################################################################ # Move script to background if DSCIP_DAEMON_FORK is set to true # +set +u if [ "$DSCIP_DAEMON" = "true" ]; then if [ "$DSCIP_DAEMON_FORK" = "true" ] && [ ! "$FORKED" = "true" ]; then FORKED=true nohup "$0" "$@" > /dev/null 2>&1 exit 0 fi fi +set -u # Check if script is currently running, and if not, reset LOCK # if [ -f "$WORKING_DIRECTORY/LOCK" ]; then @@ -120,7 +122,7 @@ run () { elif [ ! "$LAST_COMMIT" = "$CURRENT_COMMIT" ]; then # If the last commit and current commit don't match, then we go ahead and build. build else - return + return 0 fi else build |