Use /bin/bash instead of /bin/sh

Fixes:

$ shellcheck -S warning selinux-autorelabel-generator.sh

In selinux-autorelabel-generator.sh line 22:
    source /etc/selinux/config
    ^------------------------^ SC3046 (warning): In POSIX sh, 'source' in place of '.' is undefined.

For more information:
  https://www.shellcheck.net/wiki/SC3046 -- In POSIX sh, 'source' in place of...

https://bugzilla.redhat.com/show_bug.cgi?id=2210593
This commit is contained in:
Petr Lautrbach 2023-05-29 10:36:04 +02:00 committed by plautrba
parent 3cac2f0428
commit 28f9992604

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# This systemd.generator(7) detects if SELinux is running and if the # This systemd.generator(7) detects if SELinux is running and if the
# user requested an autorelabel, and if so sets the default target to # user requested an autorelabel, and if so sets the default target to