Created
February 10, 2022 19:55
-
-
Save DavidArsene/70da2f9c6ac6c19485dc0555ea205426 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
[ "$EUID" -ne 0 ] && echo "This script must be ran as root!" && exit 1 | |
system=$(settings list system) | |
secure=$(settings list secure) | |
global=$(settings list global) | |
read -p "Press Enter after changing settings..." | |
echo | |
echo Differences for system: | |
diff --color <(echo "$system") <(settings list system) | |
echo Differences for secure: | |
diff --color <(echo "$secure") <(settings list secure) | |
echo Differences for global: | |
diff --color <(echo "$global") <(settings list global) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment