souced style is not enfoced

This commit is contained in:
Suikan 2021-07-01 21:43:04 +09:00
parent f1a43e9c54
commit cb95b86ea7
2 changed files with 0 additions and 24 deletions

View file

@ -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"