Skip to content

Commit 6278eba

Browse files
committed
tools: download to same file name
1 parent fdcd508 commit 6278eba

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

tools/build_talib_linux.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ CMAKE_BUILD_TYPE=Release
77
CMAKE_CONFIGURATION_TYPES=Release
88

99
# Download TA-Lib C Library
10-
curl -L -o talib-c.zip https://github.com/TA-Lib/ta-lib/archive/refs/tags/v${TALIB_C_VER}.zip
10+
curl -L -o talib-${TALIB_C_VER}.zip https://github.com/TA-Lib/ta-lib/archive/refs/tags/v${TALIB_C_VER}.zip
1111
if [ $? -ne 0 ]; then
1212
echo "Failed to download TA-Lib C library"
1313
exit 1
1414
fi
1515

1616
# Unzip TA-Lib C
17-
unzip -q talib-c.zip
17+
unzip -q talib-${TALIB_C_VER}.zip
1818
if [ $? -ne 0 ]; then
1919
echo "Failed to extract TA-Lib C library"
2020
exit 1

tools/build_talib_macos.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ CMAKE_BUILD_TYPE=Release
77
CMAKE_CONFIGURATION_TYPES=Release
88

99
# Download TA-Lib C Library
10-
curl -L -o talib-c.zip https://github.com/TA-Lib/ta-lib/archive/refs/tags/v${TALIB_C_VER}.zip
10+
curl -L -o talib-${TALIB_C_VER}.zip https://github.com/TA-Lib/ta-lib/archive/refs/tags/v${TALIB_C_VER}.zip
1111
if [ $? -ne 0 ]; then
1212
echo "Failed to download TA-Lib C library"
1313
exit 1
1414
fi
1515

1616
# Unzip TA-Lib C
17-
unzip -q talib-c.zip
17+
unzip -q talib-${TALIB_C_VER}.zip
1818
if [ $? -ne 0 ]; then
1919
echo "Failed to extract TA-Lib C library"
2020
exit 1

tools/build_talib_windows.cmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ set CMAKE_GENERATOR=NMake Makefiles
88
set CMAKE_BUILD_TYPE=Release
99
set CMAKE_CONFIGURATION_TYPES=Release
1010

11-
curl -L -o talib-c.zip https://github.com/TA-Lib/ta-lib/archive/refs/tags/v%TALIB_C_VER%.zip
11+
curl -L -o talib-%TALIB_C_VER%.zip https://github.com/TA-Lib/ta-lib/archive/refs/tags/v%TALIB_C_VER%.zip
1212
if errorlevel 1 exit /B 1
1313

14-
tar -xzvf talib-c.zip
14+
tar -xzvf talib-%TALIB_C_VER%.zip
1515
if errorlevel 1 exit /B 1
1616

1717
:: git apply --verbose --binary talib.diff

0 commit comments

Comments
 (0)