diff options
author | Charadon <dev@iotib.net> | 2022-08-06 19:48:21 -0400 |
---|---|---|
committer | Charadon <dev@iotib.net> | 2022-08-06 19:48:21 -0400 |
commit | 754b103c83c726fdd990f27ab91b56745b69c2fd (patch) | |
tree | b7176077919e3d0cab86199c61cefebe4dc0562a | |
parent | 1b90ad5cfd90c1724d803d9578dddfe129d3503f (diff) | |
download | dscip-754b103c83c726fdd990f27ab91b56745b69c2fd.tar.gz |
Maybe fixed detection?
-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 |