camera-trng/scripts/uninstall-launchagent.sh

14 lines
369 B
Bash
Executable File

#!/usr/bin/env bash
# Remove the camera-qrng LaunchAgent and stop the service.
# Usage: ./scripts/uninstall-launchagent.sh
set -e
PLIST="${HOME}/Library/LaunchAgents/camera-trng.plist"
if [[ -f "$PLIST" ]]; then
launchctl unload "$PLIST" 2>/dev/null || true
rm -f "$PLIST"
echo "Uninstalled camera-trng LaunchAgent."
else
echo "No plist found at ${PLIST}."
fi