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

View File

@ -31,4 +31,4 @@ If oFS.FolderExists(sJBDataFolder) Then
Next
End If
MsgBox "done"
MsgBox "done"