mirror of
https://github.com/obra/superpowers.git
synced 2026-06-16 07:39:04 +08:00
Fix Windows lifecycle validation
This commit is contained in:
@@ -40,7 +40,7 @@ command_has_server_id() {
|
||||
local expected_arg="--brainstorm-server-id=$expected"
|
||||
if [[ -r "/proc/$pid/cmdline" ]]; then
|
||||
local arg
|
||||
while IFS= read -r -d '' arg; do
|
||||
while IFS= read -r -d '' arg || [[ -n "$arg" ]]; do
|
||||
[[ "$arg" == "$expected_arg" ]] && return 0
|
||||
done < "/proc/$pid/cmdline"
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user