mirror of
https://github.com/status-im/status-react.git
synced 2025-01-10 11:06:25 +00:00
f57a26b5f5
## Summary In this commit we : - instead of `cd` to `/Library/LaunchDaemons` and then attempting to `launchctl unload` the nixos plist files we just pass the full path to unload as seen in `nix` documentation here : https://nixos.org/manual/nix/stable/installation/uninstall.html#:~:text=Stop%20and%20remove%20the%20Nix%20daemon%20services%3A - move killing a process by prompting for confirmation to a new shell script as per feedback from previous PR : https://github.com/status-im/status-mobile/pull/18192#discussion_r1439495310 - fix few small typos ## Platforms - macOS
15 lines
351 B
Bash
15 lines
351 B
Bash
#!/usr/bin/env bash
|
|
set -Eeuo pipefail
|
|
# script to prompt user for terminating a process
|
|
|
|
pid="${1}"
|
|
|
|
read -p "Do you want to terminate this process? (y/n): " choice
|
|
if [[ "${choice}" == "y" ]]; then
|
|
sudo kill "${pid}"
|
|
echo "Process ${pid} terminated."
|
|
else
|
|
echo "Process not terminated. Please close it manually and retry."
|
|
exit 1
|
|
fi
|