mirror of
https://github.com/cupcakearmy/nix-macos.git
synced 2025-04-02 13:28:13 +00:00
export plist
This commit is contained in:
parent
2d309816ff
commit
b0c3e9e512
24
scripts/plist/export.sh
Executable file
24
scripts/plist/export.sh
Executable file
@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Create secrets directory if it doesn't exist
|
||||
mkdir -p secrets/plist
|
||||
|
||||
# Array of app IDs to export
|
||||
APP_IDS=(
|
||||
"com.lwouis.alt-tab-macos"
|
||||
)
|
||||
|
||||
# Export each plist
|
||||
for APP_ID in "${APP_IDS[@]}"; do
|
||||
echo "Exporting $APP_ID..."
|
||||
defaults export "$APP_ID" - >"secrets/plist/$APP_ID.plist"
|
||||
|
||||
# Check if export was successful
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Successfully exported $APP_ID to secrets/$APP_ID.plist"
|
||||
else
|
||||
echo "Failed to export $APP_ID"
|
||||
fi
|
||||
done
|
||||
|
||||
echo "All exports completed!"
|
Loading…
x
Reference in New Issue
Block a user