You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/scripts/lib/gradle.sh
+3-12Lines changed: 3 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,5 @@
1
1
#!/usr/bin/env bash
2
2
3
-
init_scripts_path() {
4
-
# The gradle --init-script flag only accepts a relative directory path. ¯\_(ツ)_/¯
5
-
lib_dir_rel="$(relative_lib_path)"
6
-
echo"${lib_dir_rel}/gradle-init-scripts"
7
-
}
8
-
9
3
invoke_gradle() {
10
4
local args
11
5
args=()
@@ -16,15 +10,12 @@ invoke_gradle() {
16
10
cd"${project_dir}"> /dev/null 2>&1|| die "ERROR: The subdirectory ${project_dir} (set with --project-dir) does not exist in ${project_name}.""${INVALID_INPUT}"
Copy file name to clipboardExpand all lines: components/scripts/lib/paths.sh
-19Lines changed: 0 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -45,22 +45,3 @@ relative_path() {
45
45
46
46
printf'%s\n'"$result"
47
47
}
48
-
49
-
relative_lib_path() {
50
-
local original_dir
51
-
if [ -n"${project_dir}" ];then
52
-
original_dir="$(pwd)"
53
-
cd"${project_dir}"> /dev/null 2>&1|| die "ERROR: The subdirectory ${project_dir} (set with --project-dir) does not exist in ${project_name}.""${INVALID_INPUT}"
54
-
fi
55
-
56
-
local lib_dir_rel
57
-
lib_dir_rel=$(relative_path "$(pwd)""${LIB_DIR}")
58
-
59
-
if [ -n"${project_dir}" ];then
60
-
# shellcheck disable=SC2164 # We are just navigating back to the original directory
0 commit comments