init
This commit is contained in:
12
uninstall.sh
Executable file
12
uninstall.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
HOME_DIR="${LAYA_ROUTER_HOME:-$HOME/.laya-router}"
|
||||
BIN="$HOME_DIR/.venv/bin/laya-router"
|
||||
|
||||
if [[ ! -x "$BIN" ]]; then
|
||||
echo "未找到 $BIN。如果服务仍在运行,可执行: launchctl bootout gui/$(id -u)/com.laya-router" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exec "$BIN" uninstall "$@"
|
||||
Reference in New Issue
Block a user