File tree Expand file tree Collapse file tree 4 files changed +28
-8
lines changed Expand file tree Collapse file tree 4 files changed +28
-8
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,13 @@ RESOURCE_DIR="resources/linux-x86-64"
6
6
LIB_NAME=" libbdkffi.so"
7
7
8
8
printf " \nSubmodule check...\n"
9
- git submodule update --init
10
- printf " Submodule is checked out at commit: $( git submodule status) \n\n"
9
+ if [[ " $1 " != " --skip-submodule-update" ]]; then
10
+ git submodule update --init
11
+ printf " Submodule is checked out at commit: $( git submodule status) \n\n"
12
+ else
13
+ printf " Skipping submodule update, using local changes.\n"
14
+ printf " Submodule is checked out at commit: $( git submodule status) \n\n"
15
+ fi
11
16
12
17
# Move to the Rust library directory
13
18
cd ./bdk-ffi/bdk-ffi/ || exit
Original file line number Diff line number Diff line change @@ -6,8 +6,13 @@ RESOURCE_DIR="resources/darwin-aarch64"
6
6
LIB_NAME=" libbdkffi.dylib"
7
7
8
8
printf " \nSubmodule check...\n"
9
- git submodule update --init
10
- printf " Submodule is checked out at commit: $( git submodule status) \n\n"
9
+ if [[ " $1 " != " --skip-submodule-update" ]]; then
10
+ git submodule update --init
11
+ printf " Submodule is checked out at commit: $( git submodule status) \n\n"
12
+ else
13
+ printf " Skipping submodule update, using local changes.\n"
14
+ printf " Submodule is checked out at commit: $( git submodule status) \n\n"
15
+ fi
11
16
12
17
# Move to the Rust library directory
13
18
cd ./bdk-ffi/bdk-ffi/ || exit
Original file line number Diff line number Diff line change @@ -6,8 +6,13 @@ RESOURCE_DIR="resources/darwin-x86-64"
6
6
LIB_NAME=" libbdkffi.dylib"
7
7
8
8
printf " \nSubmodule check...\n"
9
- git submodule update --init
10
- printf " Submodule is checked out at commit: $( git submodule status) \n\n"
9
+ if [[ " $1 " != " --skip-submodule-update" ]]; then
10
+ git submodule update --init
11
+ printf " Submodule is checked out at commit: $( git submodule status) \n\n"
12
+ else
13
+ printf " Skipping submodule update, using local changes.\n"
14
+ printf " Submodule is checked out at commit: $( git submodule status) \n\n"
15
+ fi
11
16
12
17
# Move to the Rust library directory
13
18
cd ./bdk-ffi/bdk-ffi/ || exit
Original file line number Diff line number Diff line change @@ -6,8 +6,13 @@ RESOURCE_DIR="resources/win32-x86-64"
6
6
LIB_NAME=" bdkffi.dll"
7
7
8
8
printf " \nSubmodule check...\n"
9
- git submodule update --init
10
- printf " Submodule is checked out at commit: $( git submodule status) \n\n"
9
+ if [[ " $1 " != " --skip-submodule-update" ]]; then
10
+ git submodule update --init
11
+ printf " Submodule is checked out at commit: $( git submodule status) \n\n"
12
+ else
13
+ printf " Skipping submodule update, using local changes.\n"
14
+ printf " Submodule is checked out at commit: $( git submodule status) \n\n"
15
+ fi
11
16
12
17
# Move to the Rust library directory
13
18
cd ./bdk-ffi/bdk-ffi/ || exit
You can’t perform that action at this time.
0 commit comments