From aa27ac8a131c55600d5d7480da31d72d65fe658f Mon Sep 17 00:00:00 2001 From: hacker07 Date: Thu, 17 Sep 2026 14:42:55 +0300 Subject: [PATCH] feat(install): support local source archive path in TACHYON_SOURCE_URL --- install.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index c0cf0dfc..ae99a9f7 100755 --- a/install.sh +++ b/install.sh @@ -3079,7 +3079,15 @@ source_install_from_repo() { _archive_file="${TMP_DIR:-/tmp}/neotachyon-src.tar.gz" _src_dir="${TMP_DIR:-/tmp}/neotachyon-src" - download_file_once "$_archive_url" "$_archive_file" || fail "Failed to download the source archive from ${_archive_url}" + case "$_archive_url" in + /*|./*|../*) + # Local path: use it as-is (e.g. pre-transferred tarball). + _archive_file="$_archive_url" + ;; + *) + download_file_once "$_archive_url" "$_archive_file" || fail "Failed to download the source archive from ${_archive_url}" + ;; + esac rm -rf "$_src_dir" mkdir -p "$_src_dir"