فهرست منبع

bash variable missing $

zjcqoo 6 سال پیش
والد
کامیت
130d873fc6
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      run.sh

+ 1 - 1
run.sh

@@ -1,7 +1,7 @@
 NGX_BIN=/home/jsproxy/openresty/nginx/sbin/nginx
 NGX_BIN=/home/jsproxy/openresty/nginx/sbin/nginx
 
 
 # local test
 # local test
-if [ ! -f NGX_BIN ]; then
+if [ ! -f $NGX_BIN ]; then
     NGX_BIN=/usr/local/openresty/nginx/sbin/nginx
     NGX_BIN=/usr/local/openresty/nginx/sbin/nginx
 fi
 fi