Explorar el Código

Merge pull request #1012 from 0xJacky/dev

chore: update install.sh
Jacky hace 3 días
padre
commit
7718718c89
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      install.sh

+ 5 - 0
install.sh

@@ -272,6 +272,11 @@ decompression() {
 
 install_bin() {
     NAME="nginx-ui"
+    
+    if [[ ! -d "/usr/local/bin" ]]; then
+        mkdir -p "/usr/local/bin"
+    fi
+    
     install -m 755 "${TMP_DIRECTORY}/$NAME" "/usr/local/bin/$NAME"
 }