unplugged-vendor/distribute

20 lines
477 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/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