Skip to content

Instantly share code, notes, and snippets.

@jerry-maheswara-github
Last active April 20, 2020 00:07
Show Gist options
  • Save jerry-maheswara-github/7958cfc3096d3d05ac6f03750eadd3cd to your computer and use it in GitHub Desktop.
Save jerry-maheswara-github/7958cfc3096d3d05ac6f03750eadd3cd to your computer and use it in GitHub Desktop.
#!/bin/bash
default="2019.3"
version=${1:-$default}
#echo $variable1
echo $version
reset_evaluation()
{
echo "Reset PhpStorm and DataGrip Evaluation Version: "$version
rm -rf ~/.*$version/config/eval
rm ~/.*$version/config/options/other.xml
rm -rf ~/.java/.userPrefs/jetbrains/phpstorm
rm -rf ~/.java/.userPrefs/jetbrains/datagrip
echo "Done..."
}
if [ $version ]; then
reset_evaluation
else
echo "yg bener dong masukin versi nya"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment