From a055db7318ba60b18c99cfb388e929c0528cb9e9 Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Tue, 14 Feb 2023 23:27:45 -0500 Subject: [PATCH] [F] Fix SC2015 --- scripts/zshrc.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/zshrc.sh b/scripts/zshrc.sh index 80a84a6..c4e5ef9 100755 --- a/scripts/zshrc.sh +++ b/scripts/zshrc.sh @@ -109,7 +109,11 @@ alias nginx="sudo nginx" # Gradle with auto environment detection [[ -z $GRADLE ]] && GRADLE="$(which gradle)" gradle() { - [[ -f "./gradlew" ]] && ./gradlew "$@" || $GRADLE "$@" + if [[ -f "./gradlew" ]]; then + ./gradlew "$@" + else + $GRADLE "$@" + fi } # Unix permissions reset (Dangerous! This will make executable files no longer executable)