From 4b099bcbdf6b9ccf221a10b9d2e0ff18e3f7740a Mon Sep 17 00:00:00 2001 From: Stackzhao Date: Fri, 4 Feb 2022 20:31:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85=E5=8F=91=E5=B8=83=E7=AC=AC?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E7=89=88=E6=9C=ACV1.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mkrjconfig.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mkrjconfig.sh b/mkrjconfig.sh index 0536281..3f6d684 100755 --- a/mkrjconfig.sh +++ b/mkrjconfig.sh @@ -178,7 +178,7 @@ function check_temp_file() { fi } function display_help() { - echo "用法: $0 [参数]" + echo "用法: $(basename $0) [参数]" echo " -h, --help 输出帮助信息" echo " -o, --opt-file 指定参数文件(可支持xlsx,csv格式的文件)" echo " -t, --template-file 指定模板文件" @@ -214,11 +214,11 @@ function parse_cmd_line() { display_help ;; -o|--opt-file|-o=*|--opt-file=*) - opt_file_name="$(parse_opt_equal_sign "$1" "$2")" + opt_file_name="`readlink -f $(parse_opt_equal_sign "$1" "$2")`" [[ $? -eq 0 ]] && shift ;; -t|--template-file|-t=*|--template-file=*) - template_file_name="$(parse_opt_equal_sign "$1" "$2")" + template_file_name="`readlink -f $(parse_opt_equal_sign "$1" "$2")`" [[ $? -eq 0 ]] && shift ;; -O|--output-file|-O=*|--output-file=*)