From 32e39ac77d492f63104941a2f7dced24aba78614 Mon Sep 17 00:00:00 2001 From: Zcorn Date: Fri, 10 Jan 2025 19:30:58 +0800 Subject: [PATCH] Fix bug `No such file or directory` in install_update_linux.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Create the directory if it does not exist. In this way, we can prevent the error: `install: failed to access ‘~/.local/bin’: No such file or directory` --- scripts/install_update_linux.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install_update_linux.sh b/scripts/install_update_linux.sh index 33003c02..8a88e84e 100755 --- a/scripts/install_update_linux.sh +++ b/scripts/install_update_linux.sh @@ -3,6 +3,9 @@ # allow specifying different destination directory DIR="${DIR:-"$HOME/.local/bin"}" +# ensure the directory exists +mkdir -p "$DIR" + # map different architecture variations to the available binaries ARCH=$(uname -m) case $ARCH in