From 0135dc1f5d57de8f5df684b9fad94f239da6fb00 Mon Sep 17 00:00:00 2001 From: Suikan <26223147+suikan4github@users.noreply.github.com> Date: Tue, 29 Jun 2021 23:03:59 +0900 Subject: [PATCH] Refine the warning When the target distribution seems to be wrong --- ubuntu/1-pre-install.sh | 8 ++++++-- voidlinux/1-pre-install.sh | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ubuntu/1-pre-install.sh b/ubuntu/1-pre-install.sh index ed8fe8b..921334b 100644 --- a/ubuntu/1-pre-install.sh +++ b/ubuntu/1-pre-install.sh @@ -65,9 +65,13 @@ fi # "sourced" validation # Distribution check uname -a | grep ubuntu -i > /dev/null if [ $? -eq 1 ] ; then # "Ubuntu" is not found in the OS name. + echo "*********************************************************************************" uname -a - echo "This system seems to be netiher Ubuntu nor Ubuntu variants, while this script is dediated to the Ubuntu or its variants" - echo "Are you sure you want to run this script for installation? [Y/N]" + cat <&2 diff --git a/voidlinux/1-pre-install.sh b/voidlinux/1-pre-install.sh index 8233909..feebc17 100644 --- a/voidlinux/1-pre-install.sh +++ b/voidlinux/1-pre-install.sh @@ -65,9 +65,13 @@ fi # "sourced" validation # Distribution check uname -a | grep void -i > /dev/null if [ $? -eq 1 ] ; then # "Void" is not found in the OS name. + echo "*********************************************************************************" uname -a - echo "This system seems to be not Void Linux, while this script is dediated to the Void Linux." - echo "Are you sure you want to run this script for installation? [Y/N]" + cat <&2