Initial import of transcript pipeline
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
KEEP_FILES="false"
|
||||
if [[ "${1:-}" == "--keep-files" ]]; then
|
||||
KEEP_FILES="true"
|
||||
fi
|
||||
|
||||
PLIST_NAME="com.maddin.whisper-transcript-pipeline.plist"
|
||||
TARGET_DIR="$HOME/Library/LaunchAgents"
|
||||
TARGET_PLIST="$TARGET_DIR/$PLIST_NAME"
|
||||
DOMAIN="gui/$(id -u)"
|
||||
LABEL="com.maddin.whisper-transcript-pipeline"
|
||||
|
||||
launchctl bootout "$DOMAIN" "$TARGET_PLIST" >/dev/null 2>&1 || true
|
||||
launchctl disable "$DOMAIN/$LABEL" >/dev/null 2>&1 || true
|
||||
|
||||
if [[ "$KEEP_FILES" != "true" ]]; then
|
||||
rm -f "$TARGET_PLIST"
|
||||
echo "Uninstalled $LABEL"
|
||||
else
|
||||
echo "Stopped $LABEL"
|
||||
fi
|
||||
Reference in New Issue
Block a user