From 4206ce695102fe23be0fd6217640675258ba4eff Mon Sep 17 00:00:00 2001 From: pengzhile Date: Fri, 8 Oct 2021 10:08:10 +0800 Subject: [PATCH] fix scripts --- scripts/temp_reset_eval_mac_linux.sh | 16 +++++++++------- scripts/temp_reset_eval_windows.vbs | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/scripts/temp_reset_eval_mac_linux.sh b/scripts/temp_reset_eval_mac_linux.sh index 94e8a93..9782835 100755 --- a/scripts/temp_reset_eval_mac_linux.sh +++ b/scripts/temp_reset_eval_mac_linux.sh @@ -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.' \ No newline at end of file +echo 'done.' diff --git a/scripts/temp_reset_eval_windows.vbs b/scripts/temp_reset_eval_windows.vbs index 9549cad..9eee83f 100644 --- a/scripts/temp_reset_eval_windows.vbs +++ b/scripts/temp_reset_eval_windows.vbs @@ -31,4 +31,4 @@ If oFS.FolderExists(sJBDataFolder) Then Next End If -MsgBox "done" \ No newline at end of file +MsgBox "done"