From eb605f62ce84351bb2062c93b2323bbd10ce98e9 Mon Sep 17 00:00:00 2001 From: Ruledo Date: Thu, 20 Feb 2025 21:57:18 -0800 Subject: [PATCH] Allow other OS's to build image AT THEIR OWN RISK May the source be with you! --- environment-setup/foxbuntu-builder.sh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/environment-setup/foxbuntu-builder.sh b/environment-setup/foxbuntu-builder.sh index 3229318..3cb4063 100644 --- a/environment-setup/foxbuntu-builder.sh +++ b/environment-setup/foxbuntu-builder.sh @@ -12,15 +12,11 @@ if [[ $(id -u) != 0 ]]; then exit 1 fi -if [ -f /etc/os-release ]; then - . /etc/os-release - if [ "$VERSION_ID" != "22.04" ] || [ "$NAME" != "Ubuntu" ]; then - echo "This script is intended for Ubuntu 22.04, exiting..." - exit 1 - fi -else - echo "This script is intended for Ubuntu 22.04, exiting..." - exit 1 +[ -f /etc/os-release ] && . /etc/os-release + +if [ "$VERSION_ID" != "22.04" ] || [ "$NAME" != "Ubuntu" ]; then + echo -e "This script is intended for Ubuntu 22.04, your operating system is not supported (but may work).\nPress Ctrl+C to cancel, or Enter to continue." + read fi sudoer=$(echo $SUDO_USER)