[F] Fix SC2015
This commit is contained in:
+5
-1
@@ -109,7 +109,11 @@ alias nginx="sudo nginx"
|
|||||||
# Gradle with auto environment detection
|
# Gradle with auto environment detection
|
||||||
[[ -z $GRADLE ]] && GRADLE="$(which gradle)"
|
[[ -z $GRADLE ]] && GRADLE="$(which gradle)"
|
||||||
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)
|
# Unix permissions reset (Dangerous! This will make executable files no longer executable)
|
||||||
|
|||||||
Reference in New Issue
Block a user