12 lines
366 B
Bash
12 lines
366 B
Bash
#!/usr/bin/env bash
|
|
|
|
backupMacPrefs() {
|
|
if [ -d /Applications ] && [ -d /System ]; then
|
|
if command -v macprefs > /dev/null; then
|
|
logg info 'Backing up macOS preferences with macprefs'
|
|
macprefs backup -t system_preferences startup_items shared_file_lists app_store_preferences internet_accounts
|
|
fi
|
|
fi
|
|
}
|
|
|
|
backupMacPrefs
|