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
+2
+2
View File
@@ -216,9 +216,11 @@ $dir/irecovery -f boot/kernelcache.img4
sleep 1 sleep 1
$dir/irecovery -c "bootx" $dir/irecovery -c "bootx"
if [ "$os" = 'Darwin' ]; then
defaults write -g ignore-devices -bool false defaults write -g ignore-devices -bool false
defaults write com.apple.AMPDevicesAgent dontAutomaticallySyncIPods -bool false defaults write com.apple.AMPDevicesAgent dontAutomaticallySyncIPods -bool false
killall Finder killall Finder
fi
rm -rf work rm -rf work
echo "" echo ""