Skip to content

Commit

Permalink
Make sure the directory exists (sometimes it doesn't, e.g., EdgeRoute…
Browse files Browse the repository at this point in the history
…r) (#307)
  • Loading branch information
maskshell authored Nov 5, 2024
1 parent b3cbf91 commit cb39ee8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions install-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit cb39ee8

Please sign in to comment.