Skip to content

Commit

Permalink
linux-fixup-rpaths.bash: fix shellcheck warning
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bkueng committed Feb 15, 2022
1 parent 76b7b73 commit ffb603b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/linux-fixup-rpaths.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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`:
Expand Down

0 comments on commit ffb603b

Please sign in to comment.