diff --git a/cloud-build.sh b/cloud-build.sh index 401f061..b7de8a7 100755 --- a/cloud-build.sh +++ b/cloud-build.sh @@ -6,6 +6,8 @@ set -o errexit set -o pipefail +YELLOW=$(tput setaf 3) +NORMAL=$(tput sgr0) SCRNAME="$(basename "$0")" SCRDIR="$(dirname "${BASH_SOURCE[0]}")" @@ -53,8 +55,8 @@ fi if [ -e "/sys/fs/selinux/enforce" ]; then enforce_check="$(cat /sys/fs/selinux/enforce)" if [ "$enforce_check" -eq "1" ]; then - echo "Running with selinux enforcing is not recommended." - exit 22 + printf "${YELLOW}WARNING:${NORMAL} Running with selinux enforcing may cause issues with the final image.\n" + printf "Proceed at your own risk.\n" fi fi diff --git a/container-build.sh b/container-build.sh index 4730cea..622cb57 100755 --- a/container-build.sh +++ b/container-build.sh @@ -6,6 +6,8 @@ set -o errexit set -o pipefail +YELLOW=$(tput setaf 3) +NORMAL=$(tput sgr0) SCRNAME="$(basename "$0")" SCRDIR="$(dirname "${BASH_SOURCE[0]}")" @@ -53,8 +55,8 @@ fi if [ -e "/sys/fs/selinux/enforce" ]; then enforce_check="$(cat /sys/fs/selinux/enforce)" if [ "$enforce_check" -eq "1" ]; then - echo "Running with selinux enforcing is not recommended." - exit 22 + printf "${YELLOW}WARNING:${NORMAL} Running with selinux enforcing may cause issues with the final image.\n" + printf "Proceed at your own risk.\n" fi fi diff --git a/live-build.sh b/live-build.sh index 13dc97a..02f8501 100755 --- a/live-build.sh +++ b/live-build.sh @@ -6,6 +6,8 @@ set -o errexit set -o pipefail +YELLOW=$(tput setaf 3) +NORMAL=$(tput sgr0) SCRNAME="$(basename "$0")" SCRDIR="$(dirname "${BASH_SOURCE[0]}")" @@ -55,8 +57,8 @@ fi if [ -e "/sys/fs/selinux/enforce" ]; then enforce_check="$(cat /sys/fs/selinux/enforce)" if [ "$enforce_check" -eq "1" ]; then - echo "Running with selinux enforcing is not recommended." - exit 22 + printf "${YELLOW}WARNING:${NORMAL} Running with selinux enforcing may cause issues with the final image.\n" + printf "Proceed at your own risk.\n" fi fi diff --git a/sbc-build.sh b/sbc-build.sh index 5723447..907a023 100755 --- a/sbc-build.sh +++ b/sbc-build.sh @@ -6,6 +6,8 @@ set -o errexit set -o pipefail +YELLOW=$(tput setaf 3) +NORMAL=$(tput sgr0) SCRNAME="$(basename "$0")" SCRDIR="$(dirname "${BASH_SOURCE[0]}")" @@ -53,8 +55,8 @@ fi if [ -e "/sys/fs/selinux/enforce" ]; then enforce_check="$(cat /sys/fs/selinux/enforce)" if [ "$enforce_check" -eq "1" ]; then - echo "Running with selinux enforcing is not recommended." - exit 22 + printf "${YELLOW}WARNING:${NORMAL} Running with selinux enforcing may cause issues with the final image.\n" + printf "Proceed at your own risk.\n" fi fi diff --git a/wsl-build.sh b/wsl-build.sh index b019f75..05a053d 100755 --- a/wsl-build.sh +++ b/wsl-build.sh @@ -6,6 +6,8 @@ set -o errexit set -o pipefail +YELLOW=$(tput setaf 3) +NORMAL=$(tput sgr0) SCRNAME="$(basename "$0")" SCRDIR="$(dirname "${BASH_SOURCE[0]}")" @@ -53,8 +55,8 @@ fi if [ -e "/sys/fs/selinux/enforce" ]; then enforce_check="$(cat /sys/fs/selinux/enforce)" if [ "$enforce_check" -eq "1" ]; then - echo "Running with selinux enforcing is not recommended." - exit 22 + printf "${YELLOW}WARNING:${NORMAL} Running with selinux enforcing may cause issues with the final image.\n" + printf "Proceed at your own risk.\n" fi fi