From 14cdcf086351804fd9335e486f5d42e6e23c508c Mon Sep 17 00:00:00 2001 From: libm Date: Fri, 13 Jun 2025 11:30:29 +0800 Subject: [PATCH] fix: replace real path for install to fix #163 --- install.sh | 2 +- script/common.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index ffa6c00..e02febe 100755 --- a/install.sh +++ b/install.sh @@ -9,7 +9,7 @@ _valid_env _get_kernel -/bin/install -D <(gzip -dc "$ZIP_KERNEL") "${RESOURCES_BIN_DIR}/$BIN_KERNEL_NAME" +/usr/bin/install -D <(gzip -dc "$ZIP_KERNEL") "${RESOURCES_BIN_DIR}/$BIN_KERNEL_NAME" tar -xf "$ZIP_SUBCONVERTER" -C "$RESOURCES_BIN_DIR" tar -xf "$ZIP_YQ" -C "${RESOURCES_BIN_DIR}" # shellcheck disable=SC2086 diff --git a/script/common.sh b/script/common.sh index c95f5f5..49ef8a3 100644 --- a/script/common.sh +++ b/script/common.sh @@ -99,7 +99,7 @@ _set_rc() { echo "source $CLASH_SCRIPT_DIR/common.sh && source $CLASH_SCRIPT_DIR/clashctl.sh && watch_proxy" | tee -a "$SHELL_RC_BASH" "$SHELL_RC_ZSH" >&/dev/null - [ -n "$SHELL_RC_FISH" ] && /bin/install $SCRIPT_FISH "$SHELL_RC_FISH" + [ -n "$SHELL_RC_FISH" ] && /usr/bin/install $SCRIPT_FISH "$SHELL_RC_FISH" } # 默认集成、安装mihomo内核