unplugged-system/distribute

20 lines
477 B
Plaintext
Raw Permalink Normal View History

#!/bin/bash
set -e
# 2021-10-27 xyz
YFT_CONST_FILE_NAME="dists/scripts/main2"
# 脚本调用:
# 1) -n 表示当前文件名字(name),用于被调用文件里面的说明。
# 2) ${0} 当前文件名字。
# 3) ${*} 输入的参数列表
if [ -f "${YFT_CONST_FILE_NAME}" ]; then
`which bash` ${YFT_CONST_FILE_NAME} -n ${0} ${*}
else
echo -e "\e[01;32m\n file ${0} ERRORS in Line $LINENO: can't find ${YFT_CONST_FILE_NAME}!*\n\e[0m"
fi