Просмотр исходного кода

修复模块build.sh没权限问题

a158 9 месяцев назад
Родитель
Сommit
9b1de7010d
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      tests/fastweb.cpp

+ 3 - 0
tests/fastweb.cpp

@@ -409,7 +409,10 @@ void fastweb::install_module_linux(fastweb::module_info info)
                 std::cerr << result << std::endl;
                 std::cerr << result << std::endl;
                 return;
                 return;
             }
             }
+
+            
             cmd = tdir+"/build.sh";
             cmd = tdir+"/build.sh";
+            system(std::string("chmod 777 " + cmd).c_str());
             auto [code2,result2] = execute_command(cmd);
             auto [code2,result2] = execute_command(cmd);
             if(code2 != 0)
             if(code2 != 0)
             {
             {