Created
November 23, 2016 09:41
-
-
Save zerodi/3e2aed1026bdaf93c60527ad795c35c4 to your computer and use it in GitHub Desktop.
2 small bash scripts to backup and restore amtlib.framework
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
adobe-backup() { | |
find /Applications/Adobe\ */**/amtlib.framework -type d -maxdepth 0 | while read FOLDER ; | |
do | |
newname="$(echo ${FOLDER} | awk -F '/' '{print $3}')"; | |
cp -r ${FOLDER} ~/adobe.backup/${newname}; | |
done | |
} | |
adobe-restore() { | |
for FOLDER in ~/adobe.backup/* | |
do | |
apppath="$(echo $(basename ${FOLDER}))"; | |
appname="$(echo ${apppath} | awk -F' ' '{print $1" "$2".app"}')"; | |
cp -r ${FOLDER} /Applications/${apppath}/${appname}/Contents/Frameworks/amtlib.framework; | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This only copies and save the original amtlib.framework file ? - scriptkiddie