From 66282155857a85345092b1476d7dd4aa6e266be4 Mon Sep 17 00:00:00 2001 From: jzksnsjswkw <69855421+jzksnsjswkw@users.noreply.github.com> Date: Tue, 23 May 2023 10:23:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E5=8F=AF=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E6=96=87=E4=BB=B6=20=E6=8F=90=E7=A4=BA=E6=89=BE?= =?UTF-8?q?=E4=B8=8D=E5=88=B0=E6=96=87=E4=BB=B6=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 运行可执行文件需要加路径: ./cmd --- shell/otask.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/otask.sh b/shell/otask.sh index 4fa68ba3..a102a476 100755 --- a/shell/otask.sh +++ b/shell/otask.sh @@ -193,7 +193,7 @@ run_else() { local relative_path="${file_param%/*}" if [[ ! -z ${relative_path} ]] && [[ ${file_param} =~ "/" ]]; then cd ${relative_path} - file_param=${file_param/$relative_path\//} + file_param=${file_param/$relative_path\//.\/} fi shift