fix scripts

This commit is contained in:
pengzhile 2021-10-08 10:08:10 +08:00
parent e244e0c2ed
commit 4206ce6951
2 changed files with 10 additions and 8 deletions

View File

@ -4,21 +4,23 @@
OS_NAME=$(uname -s) OS_NAME=$(uname -s)
JB_PRODUCTS="IntelliJIdea CLion PhpStorm GoLand PyCharm WebStorm Rider DataGrip RubyMine AppCode" JB_PRODUCTS="IntelliJIdea CLion PhpStorm GoLand PyCharm WebStorm Rider DataGrip RubyMine AppCode"
if [ $OS_NAME == "Darwin" ]; then if [ "$OS_NAME" = "Darwin" ]; then
echo 'macOS:' echo 'macOS:'
for PRD in $JB_PRODUCTS; do for PRD in $JB_PRODUCTS; do
rm -rf ~/Library/Preferences/${PRD}*/eval rm -rf ~/Library/Preferences/${PRD}*/eval
rm -rf ~/Library/Application\ Support/${PRD}*/eval rm -rf ~/Library/Application\ Support/${PRD}*/eval
rm -rf ~/Library/Application\ Support/JetBrains/${PRD}*/eval
done done
elif [ $OS_NAME == "Linux" ]; then elif [ "$OS_NAME" = "Linux" ]; then
echo 'Linux:' echo 'Linux:'
for PRD in $JB_PRODUCTS; do for PRD in $JB_PRODUCTS; do
rm -rf ~/.${PRD}*/config/eval rm -rf ~/.${PRD}*/config/eval
rm -rf ~/.config/${PRD}*/eval
done done
else else
echo 'unsupport' echo 'unsupported'
exit exit
fi fi