From cb95b86ea7d88aff34fdf7394254aff6413d547d Mon Sep 17 00:00:00 2001 From: Suikan <26223147+suikan4github@users.noreply.github.com> Date: Thu, 1 Jul 2021 21:43:04 +0900 Subject: [PATCH] souced style is not enfoced --- script/ubuntu-kaiten-yaki.sh | 12 ------------ script/void-kaiten-yaki.sh | 12 ------------ 2 files changed, 24 deletions(-) diff --git a/script/ubuntu-kaiten-yaki.sh b/script/ubuntu-kaiten-yaki.sh index a34928e..e8a4804 100644 --- a/script/ubuntu-kaiten-yaki.sh +++ b/script/ubuntu-kaiten-yaki.sh @@ -10,18 +10,6 @@ function main() { source common/parainstall.sh source common/parainstall_msg.sh - # Varidate whether script is executed as sourced or not - (return 0 2>/dev/null) && sourced=1 || sourced=0 - if [ $sourced -eq 0 ] ; then - cat <<- HEREDOC 1>&2 - ***** ERROR : Must execute as "sourced" ***** - Execute as following : - source ubuntu-kaiten-yaki.sh - - Installation terminated. - HEREDOC - exit # use "exit" instead of "return", if not "sourced" execusion - fi # "sourced" validation # This is the mount point of the install target. export TARGETMOUNTPOINT="/target" diff --git a/script/void-kaiten-yaki.sh b/script/void-kaiten-yaki.sh index 483bcd7..9294a78 100644 --- a/script/void-kaiten-yaki.sh +++ b/script/void-kaiten-yaki.sh @@ -10,18 +10,6 @@ function main() { source common/parainstall.sh source common/parainstall_msg.sh - # Varidate whether script is executed as sourced or not - (return 0 2>/dev/null) && sourced=1 || sourced=0 - if [ $sourced -eq 0 ] ; then - cat <<- HEREDOC 1>&2 - ***** ERROR : Must execute as "sourced" ***** - Execute as following : - source void-kaiten-yaki.sh - - Installation terminated. - HEREDOC - exit # use "exit" instead of "return", if not "sourced" execusion - fi # "sourced" validation # This is the mount point of the install target. export TARGETMOUNTPOINT="/mnt/target"