Skip to content

Commit cb39ee8

Browse files
authored
Make sure the directory exists (sometimes it doesn't, e.g., EdgeRouter) (#307)
1 parent b3cbf91 commit cb39ee8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

install-release.sh

+2
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,8 @@ decompression() {
329329
install_file() {
330330
NAME="$1"
331331
if [[ "$NAME" == 'v2ray' ]] || [[ "$NAME" == 'v2ctl' ]]; then
332+
# Make sure the directory exists (sometimes it doesn't, e.g., EdgeRouter)
333+
mkdir -p '/usr/local/bin'
332334
install -m 755 "${TMP_DIRECTORY}/$NAME" "/usr/local/bin/$NAME"
333335
elif [[ "$NAME" == 'geoip.dat' ]] || [[ "$NAME" == 'geosite.dat' ]]; then
334336
install -m 644 "${TMP_DIRECTORY}/$NAME" "${DAT_PATH}/$NAME"

0 commit comments

Comments
 (0)