Skip to content

Commit

Permalink
Fix TA-Lib installation script floating-point precision sed command
Browse files Browse the repository at this point in the history
- Remove extra whitespace in sed replacement for ta_utility.h
- Ensure precise floating-point modification without introducing unintended spaces
  • Loading branch information
saleh-mir committed Jan 29, 2025
1 parent bf3bd67 commit 2658889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker_build_helpers/install_ta-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ echo "Installing to ${INSTALL_LOC}"
if [ ! -f "${INSTALL_LOC}/lib/libta_lib.a" ]; then
tar zxvf ta-lib-0.6.1-src.tar.gz
cd ta-lib-0.6.1 \
&& sed -i.bak "s|0.00000001|0.000000000000000001 |g" src/ta_func/ta_utility.h \
&& sed -i.bak "s|0.00000001|0.000000000000000001|g" src/ta_func/ta_utility.h \
&& ./configure --prefix=${INSTALL_LOC}/ \
&& make \
&& which sudo && sudo make install || make install \
Expand Down

0 comments on commit 2658889

Please sign in to comment.