Browse Source

修复加载页面主题闪现的bug

benjobs 7 years ago
parent
commit
3649aefd08
1 changed files with 2 additions and 2 deletions
  1. 2 2
      build.sh

+ 2 - 2
build.sh

@@ -85,7 +85,7 @@ if [ $UID -ne 0 ]; then
 fi
 
 #check java exists.
-java 2> /dev/null;
+java >/dev/null 2>&1
 
 if [ $? -ne 1 ];then
   echo_r "ERROR: java is not install,please install java first!"
@@ -93,7 +93,7 @@ if [ $? -ne 1 ];then
 fi
 
 #check maven exists
-mvn -h 2> /dev/null
+mvn -h >/dev/null 2>&1
 
 if [ $? -ne 1 ]; then
     echo_y "WARNING:maven is not install!"