mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 05:26:58 +02:00
build_torcx_store: Fix pipeline error handling
This commit is contained in:
parent
69d0f05b44
commit
b797cdb723
@ -178,10 +178,11 @@ function torcx_package() {
|
|||||||
find -H "${tmproot}"/{bin,lib} -type f |
|
find -H "${tmproot}"/{bin,lib} -type f |
|
||||||
while read file
|
while read file
|
||||||
do
|
do
|
||||||
|
(
|
||||||
rpath=$(sudo patchelf --print-rpath "${file}" 2>/dev/null) &&
|
rpath=$(sudo patchelf --print-rpath "${file}" 2>/dev/null) &&
|
||||||
test "${rpath#/ORIGIN/}" != "${rpath}" &&
|
test "${rpath#/ORIGIN/}" != "${rpath}" &&
|
||||||
sudo patchelf --set-rpath "${rpath/#?/\$}" "${file}"
|
sudo patchelf --set-rpath "${rpath/#?/\$}" "${file}"
|
||||||
: # Set $? to 0 or the pipeline fails and -e quits.
|
) || : # Set $? to 0 or the pipeline fails and -e quits.
|
||||||
done
|
done
|
||||||
|
|
||||||
# Move anything we plan to package to its root.
|
# Move anything we plan to package to its root.
|
||||||
|
Loading…
Reference in New Issue
Block a user