Skip to content

Commit

Permalink
fixup! chroot-fixups: prevent %install of llvm from taking ages to co…
Browse files Browse the repository at this point in the history
…mplete

Fix potential coding issues reported by ShellCheck.
  • Loading branch information
kdudka committed Jul 16, 2024
1 parent 52fc540 commit a713f74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/chroot-fixups/rpm-build-scripts.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

script="/usr/lib/rpm/redhat/brp-mangle-shebangs"
if [ -x $script ]; then
Expand All @@ -7,7 +7,7 @@ fi

# skip RPM scripts running in %install that are not needed and break scans
for script in /usr/lib/rpm/{redhat/brp-llvm-compile-lto-elf,brp-strip-static-archive}; do
if [ -f $script ]; then
ln -fsvT /bin/true $script
if [ -f "$script" ]; then
ln -fsvT /bin/true "$script"
fi
done

0 comments on commit a713f74

Please sign in to comment.