mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 02:21:17 -03:00
Refine the warning
When the target distribution seems to be wrong
This commit is contained in:
parent
be815b535b
commit
0135dc1f5d
2 changed files with 12 additions and 4 deletions
|
|
@ -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 <<HEREDOC
|
||||
*********************************************************************************
|
||||
This system seems to be not Void Linux, while this script is dediated to the Void Linux.
|
||||
Are you sure you want to run this script for installation? [Y/N]
|
||||
HEREDOC
|
||||
read YESNO
|
||||
if [ ${YESNO} != "Y" -a ${YESNO} != "y" ] ; then
|
||||
cat <<HEREDOC 1>&2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue