From 30922b3f5bec3278f4edacda485bc5ae58ab7a11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=87=E8=B6=A3=E4=BF=9D=E7=BD=97?= Date: Sun, 18 Oct 2026 20:54:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E4=BB=A5=E5=9C=A8=E8=B0=83=E7=94=A8=E6=97=B6?= =?UTF-8?q?=E6=89=80=E5=9C=A8=E7=9B=AE=E5=BD=95=E5=90=AF=E5=8A=A8=EF=BC=8C?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E5=88=87=E6=8D=A2=E5=B7=A5=E4=BD=9C=E7=9B=AE?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- photo-toolkit.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/photo-toolkit.sh b/photo-toolkit.sh index 2345677..51cf824 100755 --- a/photo-toolkit.sh +++ b/photo-toolkit.sh @@ -1,7 +1,8 @@ #!/bin/bash # 图片工具箱启动脚本 -# 快速启动 photo-toolkit +# 在调用时所在目录启动,不切换工作目录 +# alias pht="/Users/paul/Documents/项目/个人项目/一些脚本/photo-toolkit.sh" -cd "$(dirname "$0")/photo-toolkit" -node index.js +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +node "$SCRIPT_DIR/photo-toolkit/index.js" "$@"