Skip to content

Commit

Permalink
fix(toolchain): don't pick ELF files to modify on Alpine Linux
Browse files Browse the repository at this point in the history
Issues: #3
  • Loading branch information
adonis0147 committed Oct 29, 2024
1 parent 30d20d9 commit 168525a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions toolchain/setup_toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ function configure_toolchain() {
local current_path
current_path="$(pwd)"
while read -r file; do
if "${readelf}" -h "${file}" &>/dev/null; then
continue
fi
sed -i "s|/opt/toolchain|${current_path}|g" "${file}"
done < <(
find . -type f -exec grep -E -I -l $'[=\'" ]/opt/toolchain' {} \;
Expand Down

0 comments on commit 168525a

Please sign in to comment.