diff --git a/reset_eval/reset_jetbrains_eval_mac_linux.sh b/reset_eval/reset_jetbrains_eval_mac_linux.sh index 1ef24eb..7eb7ff0 100755 --- a/reset_eval/reset_jetbrains_eval_mac_linux.sh +++ b/reset_eval/reset_jetbrains_eval_mac_linux.sh @@ -14,6 +14,7 @@ if [ "$OS_NAME" == "Darwin" ]; then sed -i '' '/name="evlsprt.*"/d' ~/Library/Application\ Support/JetBrains/"${PRD}"*/options/other.xml >/dev/null 2>&1 done + rm -rf ~/Library/Preferences/jetbrains.*.*.plist plutil -remove "/.JetBrains\.UserIdOnMachine" ~/Library/Preferences/com.apple.java.util.prefs.plist >/dev/null plutil -remove "/.jetbrains/.user_id_on_machine" ~/Library/Preferences/com.apple.java.util.prefs.plist >/dev/null plutil -remove "/.jetbrains/.device_id" ~/Library/Preferences/com.apple.java.util.prefs.plist >/dev/null @@ -30,6 +31,7 @@ elif [ "$OS_NAME" == "Linux" ]; then sed -i '/key="JetBrains\.UserIdOnMachine"/d' ~/.java/.userPrefs/prefs.xml sed -i '/key="device_id"/d' ~/.java/.userPrefs/jetbrains/prefs.xml sed -i '/key="user_id_on_machine"/d' ~/.java/.userPrefs/jetbrains/prefs.xml + find ~/.java/.userPrefs/jetbrains/ -name "evlsprt*" -type d -exec rm -rf {} \; >/dev/null 2>&1 else echo 'unsupport' exit