From cb39ee88249d47ed1c601dd5d3d94758d8835629 Mon Sep 17 00:00:00 2001 From: mask <5113279+maskshell@users.noreply.github.com> Date: Tue, 5 Nov 2024 19:40:15 +0800 Subject: [PATCH] Make sure the directory exists (sometimes it doesn't, e.g., EdgeRouter) (#307) --- install-release.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install-release.sh b/install-release.sh index 2164215..914ec9d 100644 --- a/install-release.sh +++ b/install-release.sh @@ -329,6 +329,8 @@ decompression() { install_file() { NAME="$1" if [[ "$NAME" == 'v2ray' ]] || [[ "$NAME" == 'v2ctl' ]]; then + # Make sure the directory exists (sometimes it doesn't, e.g., EdgeRouter) + mkdir -p '/usr/local/bin' install -m 755 "${TMP_DIRECTORY}/$NAME" "/usr/local/bin/$NAME" elif [[ "$NAME" == 'geoip.dat' ]] || [[ "$NAME" == 'geosite.dat' ]]; then install -m 644 "${TMP_DIRECTORY}/$NAME" "${DAT_PATH}/$NAME"