Add script log for elevation scripts.

This commit is contained in:
js0ny 2025-11-08 08:13:06 +00:00
parent 2a1127bf10
commit 6ee67769a6
25 changed files with 102 additions and 99 deletions

View file

@ -1,3 +1,7 @@
#!/bin/sh
set -x
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
set +x

View file

@ -1,15 +1,16 @@
#!/bin/sh
echo "Use TouchID to authenticate before running sudo commands."
echo "WARNING: This operation modifies critical system files."
echo "If something goes wrong, you may need to boot into macOS Recovery Mode to restore your system."
echo "To continue, type EXACTLY 'yes' and press Enter."
echo "[INFO] Use TouchID to authenticate before running sudo commands."
echo "[WARNING] This operation modifies critical system files."
echo " If something goes wrong, you may need to boot into macOS Recovery Mode to restore your system."
echo "[ACTION] To continue, type EXACTLY 'yes' and press Enter."
read -p "Do you want to continue? (yes/no): " response
if [ "$response" != "yes" ]; then
echo "Operation cancelled."
echo "[INFO] Operation cancelled."
exit 0 # Exit with success status code
fi
echo ""
set -x
sudo cp ~/.dotfiles/misc/mac/etc/pam.d/sudo /etc/pam.d/sudo
set +x