[F] Fix SC2015

This commit is contained in:
Azalea Gui
2023-02-14 23:27:45 -05:00
parent d2483bf969
commit a055db7318
+5 -1
View File
@@ -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)