From 754b103c83c726fdd990f27ab91b56745b69c2fd Mon Sep 17 00:00:00 2001 From: Charadon Date: Sat, 6 Aug 2022 19:48:21 -0400 Subject: Maybe fixed detection? --- dscip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.4.1-2-gfad0