fix scripts
This commit is contained in:
parent
e244e0c2ed
commit
4206ce6951
|
@ -4,21 +4,23 @@
|
|||
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/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 ~/.config/${PRD}*/eval
|
||||
done
|
||||
else
|
||||
echo 'unsupport'
|
||||
echo 'unsupported'
|
||||
exit
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user