Last active
November 3, 2019 07:20
-
-
Save hyuni/e613cee0abdeafc78f448b2fa8397ec9 to your computer and use it in GitHub Desktop.
bash shell - Xcode 11.1 on High Sierra
This file contains hidden or 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 | |
array=(`find . -name "Info.plist"`) | |
for i in "${array[@]}" | |
do | |
val=$(/usr/libexec/PlistBuddy -c "print :LSMinimumSystemVersion" "$i" 2>/dev/null || print '0') | |
if [ "$val" == "10.14" -o "$val" == "10.14.4" -o "$val" == "10.15" ]; then | |
echo $i | |
/usr/libexec/PlistBuddy -c "set :LSMinimumSystemVersion 10.13.6" "$i" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment