Skip to content

Commit

Permalink
fix system-lib github workflow (#1722)
Browse files Browse the repository at this point in the history
change shell code in workflow to be /bin/sh compliant instead of
using bash constructs
  • Loading branch information
kupsch committed Apr 9, 2024
1 parent e70b100 commit 12fc200
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/system-libs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,14 @@ jobs:
run: |
set -e
cd /
LIB_DIRS=( /dyninst/install/lib* $LD_LIBRARY_PATH )
FIRST_DIR=${LIB_DIRS[0]}
unset LIB_DIRS[0]
# join first dir with subsequent dirs prepended with :
export LD_LIBRARY_PATH="${FIRST_DIR}${LIB_DIRS[*]/#/:}"
for d in /dyninst/install/lib*; do
if [ -n "LD_LIBRARY_PATH" ]; then
LD_LIBRARY_PATH="$d:$LD_LIBRARY_PATH"
else
LD_LIBRARY_PATH="$d"
fi
done
export LD_LIBRARY_PATH
for dir in /usr/lib /usr/lib64; do \
for file in $(find $dir -type f -name "*.so.*"); do \
echo $file; \
Expand Down

0 comments on commit 12fc200

Please sign in to comment.