20878: Improve processed RPM check style
authorBrett Smith <brett.smith@curii.com>
Thu, 17 Aug 2023 22:28:17 +0000 (18:28 -0400)
committerBrett Smith <brett.smith@curii.com>
Thu, 17 Aug 2023 22:31:17 +0000 (18:31 -0400)
This is nicer bash style that makes it more consistent with the
preceding download code.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

build/run-library.sh

index 6d5d0b6535aa13c24fa699531f445e380cb906a4..12fb34f65f74692193eec290fa2fc3bea9fb3481 100755 (executable)
@@ -468,7 +468,7 @@ test_package_presence() {
       if curl -fs -o "$WORKSPACE/packages/$TARGET/$full_pkgname" "$rpm_url"; then
         echo "Package $full_pkgname exists upstream, not rebuilding, downloading instead!"
         return 1
-      elif test -f "$WORKSPACE/packages/$TARGET/processed/${full_pkgname}" ; then
+      elif [[ -f "$WORKSPACE/packages/$TARGET/processed/$full_pkgname" ]]; then
         echo "Package $full_pkgname exists, not rebuilding!"
         return 1
       else