mirror of
https://github.com/EnderIce2/rpc-bridge.git
synced 2025-05-25 22:14:38 +00:00
Fix formatting and remove unnecessary recursive rm's
This commit is contained in:
parent
3021f8e4ad
commit
bf98b8784c
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# This script is used to create a LaunchAgent on MacOS, to support the service functionnality.
|
||||
# This script is used to create a LaunchAgent on MacOS, to support the service functionality.
|
||||
# Usage: ./launchd.sh (install|remove)
|
||||
|
||||
SYMLINK=/tmp/rpc-bridge/tmpdir
|
||||
@ -50,13 +50,12 @@ rm -rf "\$TARGET_DIR"
|
||||
</plist>" > "$AGENT"
|
||||
launchctl load "$AGENT"
|
||||
echo "LaunchAgent has been installed."
|
||||
|
||||
}
|
||||
|
||||
function remove() {
|
||||
rm -rf "$SYMLINK"
|
||||
rm -rf "$LOCATION"
|
||||
rm -f "$SYMLINK"
|
||||
rm -f "$SCRIPT"
|
||||
rmdir "$LOCATION"
|
||||
if [ -f "$AGENT" ]; then
|
||||
launchctl unload "$AGENT"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user