From eb52bdddd4b30b586324f713acdbb2b990e820f8 Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Fri, 7 Apr 2023 18:33:45 -0400 Subject: [PATCH] [F] Fix gradle --- scripts/zshrc.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 }