Browse Source

linux-fixup-rpaths.bash: fix shellcheck warning

Line 52:
    if [ ! -e "$library.stamp" -o "$library" -nt "$library.stamp" ]; then
                               ^-- [SC2166](https://github.com/koalaman/shellcheck/wiki/SC2166) (warning): Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
QGC4.4
Beat Küng 3 years ago
parent
commit
ffb603b197
  1. 2
      deploy/linux-fixup-rpaths.bash

2
deploy/linux-fixup-rpaths.bash

@ -49,7 +49,7 @@ find "${SEARCHDIR}" \ @@ -49,7 +49,7 @@ find "${SEARCHDIR}" \
while IFS='' read -r library; do
# readelf is expensive, so keep track of updates with a timestamp file
if [ ! -e "$library.stamp" -o "$library" -nt "$library.stamp" ]; then
if [ ! -e "$library.stamp" ] || [ "$library" -nt "$library.stamp" ]; then
# Get the library's current RPATH (RUNPATH)
# Example output of `readelf -d ./build/build-qgroundcontrol-Desktop_Qt_5_15_2_GCC_64bit-Debug/staging/QGroundControl`:

Loading…
Cancel
Save