mirror of
https://github.com/seanbetts/steam-hardware-watch.git
synced 2026-10-06 06:00:34 +02:00
Initial commit
This commit is contained in:
commit
fbb8c3da72
24 files changed
+2476
No files matched your search
Executable
+34
@@ -0,0 +1,34 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
SCRIPT_DIR="$(CDPATH= cd -- "$(dirname "$0")" && pwd)"
|
||||
REPO_DIR="$(CDPATH= cd -- "$SCRIPT_DIR/.." && pwd)"
|
||||
LOCAL_DIR="$REPO_DIR/.local"
|
||||
|
||||
PROFILE_DIR="${1:-${KOMODO_PROFILE_DIR:-$LOCAL_DIR/playwright-komodo-profile}}"
|
||||
ENV_FILE="${KOMODO_ENV_FILE:-$LOCAL_DIR/komodo-env.sh}"
|
||||
|
||||
pids="$(ps aux | awk -v profile="$PROFILE_DIR" '
|
||||
index($0, profile) && !index($0, "awk -v profile=") {
|
||||
print $2
|
||||
}
|
||||
')"
|
||||
|
||||
if [ -n "$pids" ]; then
|
||||
for pid in $pids; do
|
||||
kill "$pid" 2>/dev/null || true
|
||||
done
|
||||
printf '%s\n' "Closed dedicated Komodo browser/profile processes for $PROFILE_DIR."
|
||||
else
|
||||
printf '%s\n' "No dedicated Komodo browser/profile processes found for $PROFILE_DIR."
|
||||
fi
|
||||
|
||||
rm -f \
|
||||
"$PROFILE_DIR/SingletonLock" \
|
||||
"$PROFILE_DIR/SingletonSocket" \
|
||||
"$PROFILE_DIR/SingletonCookie"
|
||||
|
||||
if [ -f "$ENV_FILE" ]; then
|
||||
rm -f "$ENV_FILE"
|
||||
printf '%s\n' "Removed $ENV_FILE"
|
||||
fi
|
||||
Reference in new issue
Block a user