Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chroot-fixups: make our scripts work again in pre-UsrMove chroots
When we build csmock for RHEL-9, rpmbuild translates `/bin/bash` to `/usr/bin/bash` in our scripts. When we copy the scripts into an old chroot, such as `rhel-6-x86_64`, the translated path does not exist and the script fails with: ``` >>> 2024-05-20 12:04:36 "/usr/bin/mock" "-r" "rhel-6-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--chroot" "/usr/share/csmock/scripts/run-shellcheck.sh /builddir/build/BUILDROOT > /builddir/shellcheck-capture.err" /bin/sh: /usr/share/csmock/scripts/run-shellcheck.sh: /usr/bin/bash: bad interpreter: No such file or directory ``` Closes: csutils#167
- Loading branch information