diff options
-rwxr-xr-x | dscip | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dscip b/dscip index 53b3c20..a67297f 100755 --- a/dscip +++ b/dscip @@ -36,7 +36,7 @@ set -u if [ -f "$WORKING_DIRECTORY/LOCK" ]; then LOCKED_PID=$(cat "$WORKING_DIRECTORY/LOCK") # shellcheck disable=SC2009 - if ps -aux | grep "[^]]$LOCKED_PID" > /dev/null; then + if ps -aux | grep -w "[^]]$LOCKED_PID" > /dev/null; then echo "Script still running. Exiting..." exit 0 else |