mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-10-02 07:56:05 +02:00
fix(gradle): remove look for settings.gradle files (#11917)
This commit is contained in:
1 parent
0e1e877ea9
commit
d3b6f1fd5e
1 file changed
+1
-1
@@ -6,7 +6,7 @@ function gradle-or-gradlew() {
|
|||||||
# taken from https://github.com/gradle/gradle-completion
|
# taken from https://github.com/gradle/gradle-completion
|
||||||
local dir="$PWD" project_root="$PWD"
|
local dir="$PWD" project_root="$PWD"
|
||||||
while [[ "$dir" != / ]]; do
|
while [[ "$dir" != / ]]; do
|
||||||
if [[ -f "$dir/settings.gradle" || -f "$dir/settings.gradle.kts" || -f "$dir/gradlew" ]]; then
|
if [[ -x "$dir/gradlew" ]]; then
|
||||||
project_root="$dir"
|
project_root="$dir"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user