diff options
-rwxr-xr-x | dscip | 2 | ||||
-rwxr-xr-x | failed.sh | 1 | ||||
-rwxr-xr-x | post.sh | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/dscip b/dscip index 5d86b93..4958fb1 100755 --- a/dscip +++ b/dscip @@ -35,7 +35,7 @@ set -u # Check if script is currently running, and if not, reset LOCK # if [ -f "$WORKING_DIRECTORY/LOCK" ]; then LOCKED_PID=$(cat "$WORKING_DIRECTORY/LOCK") - if ps -p "$LOCKED_PID" > /dev/null; then + if ps -aux | grep [^]]"$LOCKED_PID" > /dev/null; then echo "Script still running. Exiting..." exit 0 else diff --git a/failed.sh b/failed.sh index e1e0f02..1477e12 100755 --- a/failed.sh +++ b/failed.sh @@ -6,6 +6,7 @@ set -eu # Below is an example of uploading the output.txt to an ftp server. ftp -in <<EOF open 192.168.1.5 +user username password mkdir $DSCIP_NAME cd $DSCIP_NAME mkdir $CURRENT_COMMIT diff --git a/post.sh b/post.sh index 307aa5a..9ad6292 100755 --- a/post.sh +++ b/post.sh @@ -6,7 +6,7 @@ set -eu # Example below. # # TAR up the program. # -bsdtar --options xz:compression-level=9 -a -cf \ +bsdtar -a -cf \ $DSCIP_NAME-$(uname)-$(uname -r)_$(uname -m)-$CURRENT_COMMIT.tar.xz app/ # Send the artifacts to an FTP server. # |