only run defaults write on darwin

This commit is contained in:
Nebula committed 2022-09-17 08:48:02 -04:00
1 parent 2b9dd9cda3
commit b6589f2ffd
1 file changed
+5 -3
+5 -3
View File
@@ -216,9 +216,11 @@ $dir/irecovery -f boot/kernelcache.img4
sleep 1
$dir/irecovery -c "bootx"
defaults write -g ignore-devices -bool false
defaults write com.apple.AMPDevicesAgent dontAutomaticallySyncIPods -bool false
killall Finder
if [ "$os" = 'Darwin' ]; then
defaults write -g ignore-devices -bool false
defaults write com.apple.AMPDevicesAgent dontAutomaticallySyncIPods -bool false
killall Finder
fi
rm -rf work
echo ""