Fix bug No such file or directory in install_update_linux.sh

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`
This commit is contained in:
Zcorn 2025-01-10 19:30:58 +08:00 committed by GitHub
parent bedde4a037
commit 32e39ac77d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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