mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 02:21:17 -03:00
souced style is not enfoced
This commit is contained in:
parent
f1a43e9c54
commit
cb95b86ea7
2 changed files with 0 additions and 24 deletions
|
|
@ -10,18 +10,6 @@ function main() {
|
||||||
source common/parainstall.sh
|
source common/parainstall.sh
|
||||||
source common/parainstall_msg.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.
|
# This is the mount point of the install target.
|
||||||
export TARGETMOUNTPOINT="/target"
|
export TARGETMOUNTPOINT="/target"
|
||||||
|
|
|
||||||
|
|
@ -10,18 +10,6 @@ function main() {
|
||||||
source common/parainstall.sh
|
source common/parainstall.sh
|
||||||
source common/parainstall_msg.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.
|
# This is the mount point of the install target.
|
||||||
export TARGETMOUNTPOINT="/mnt/target"
|
export TARGETMOUNTPOINT="/mnt/target"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue