From 28f9992604f95fdeaf37984f286f9b0e6e9a9d30 Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Mon, 29 May 2023 10:36:04 +0200 Subject: [PATCH] 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 --- selinux-autorelabel-generator.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selinux-autorelabel-generator.sh b/selinux-autorelabel-generator.sh index d9380b8..fdb4978 100644 --- a/selinux-autorelabel-generator.sh +++ b/selinux-autorelabel-generator.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # This systemd.generator(7) detects if SELinux is running and if the # user requested an autorelabel, and if so sets the default target to