about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCharadon <dev@iotib.net>2022-08-06 19:48:21 -0400
committerCharadon <dev@iotib.net>2022-08-06 19:48:21 -0400
commit754b103c83c726fdd990f27ab91b56745b69c2fd (patch)
treeb7176077919e3d0cab86199c61cefebe4dc0562a
parent1b90ad5cfd90c1724d803d9578dddfe129d3503f (diff)
downloaddscip-754b103c83c726fdd990f27ab91b56745b69c2fd.tar.gz
Maybe fixed detection?
-rwxr-xr-xdscip2
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