From ffb603b19748bc362f5ec16ccfee1c23f5ed4bfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Wed, 9 Feb 2022 08:18:30 +0100 Subject: [PATCH] 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. --- deploy/linux-fixup-rpaths.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/linux-fixup-rpaths.bash b/deploy/linux-fixup-rpaths.bash index cdbe86d..4ea8c5f 100755 --- a/deploy/linux-fixup-rpaths.bash +++ b/deploy/linux-fixup-rpaths.bash @@ -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`: