diff --git a/scripts/zshrc.sh b/scripts/zshrc.sh index 8ef30c9..838317b 100755 --- a/scripts/zshrc.sh +++ b/scripts/zshrc.sh @@ -124,7 +124,11 @@ gradle() { if [[ -f "./gradlew" ]]; then ./gradlew "$@" else - $GRADLE "$@" + if [[ -z $GRADLE ]]; then + echo "Neither gradle nor ./gradlew is found, please install it and restart zsh." + else + $GRADLE "$@" + fi fi }