mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 18:41: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
|
# Distribution check
|
||||||
uname -a | grep ubuntu -i > /dev/null
|
uname -a | grep ubuntu -i > /dev/null
|
||||||
if [ $? -eq 1 ] ; then # "Ubuntu" is not found in the OS name.
|
if [ $? -eq 1 ] ; then # "Ubuntu" is not found in the OS name.
|
||||||
|
echo "*********************************************************************************"
|
||||||
uname -a
|
uname -a
|
||||||
echo "This system seems to be netiher Ubuntu nor Ubuntu variants, while this script is dediated to the Ubuntu or its variants"
|
cat <<HEREDOC
|
||||||
echo "Are you sure you want to run this script for installation? [Y/N]"
|
*********************************************************************************
|
||||||
|
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
|
read YESNO
|
||||||
if [ ${YESNO} != "Y" -a ${YESNO} != "y" ] ; then
|
if [ ${YESNO} != "Y" -a ${YESNO} != "y" ] ; then
|
||||||
cat <<HEREDOC 1>&2
|
cat <<HEREDOC 1>&2
|
||||||
|
|
|
||||||
|
|
@ -65,9 +65,13 @@ fi # "sourced" validation
|
||||||
# Distribution check
|
# Distribution check
|
||||||
uname -a | grep void -i > /dev/null
|
uname -a | grep void -i > /dev/null
|
||||||
if [ $? -eq 1 ] ; then # "Void" is not found in the OS name.
|
if [ $? -eq 1 ] ; then # "Void" is not found in the OS name.
|
||||||
|
echo "*********************************************************************************"
|
||||||
uname -a
|
uname -a
|
||||||
echo "This system seems to be not Void Linux, while this script is dediated to the Void Linux."
|
cat <<HEREDOC
|
||||||
echo "Are you sure you want to run this script for installation? [Y/N]"
|
*********************************************************************************
|
||||||
|
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
|
read YESNO
|
||||||
if [ ${YESNO} != "Y" -a ${YESNO} != "y" ] ; then
|
if [ ${YESNO} != "Y" -a ${YESNO} != "y" ] ; then
|
||||||
cat <<HEREDOC 1>&2
|
cat <<HEREDOC 1>&2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue