当前位置: 首页 > news >正文

wordpress 二开北京郑州seo优化顾问热狗

wordpress 二开北京,郑州seo优化顾问热狗,无锡网站建设制作开发,江苏连云港网站制作公司安装工具 通过linux yum源下载,可能因为yum源的问题找不到软件包,或者下载的软件包版本太旧。 ShellCheck的源代码托管在GitHub上(推荐下载方式): GitHub - koalaman/shellcheck: ShellCheck, a static analysis tool for shell scripts 对下…

安装工具

        通过linux yum源下载,可能因为yum源的问题找不到软件包,或者下载的软件包版本太旧。

 

ShellCheck的源代码托管在GitHub上(推荐下载方式):

GitHub - koalaman/shellcheck: ShellCheck, a static analysis tool for shell scripts

 

 

        对下载的可执行程序压缩包进行解压,将shellcheck可执行命令加入环境变量:拷贝至/bin/下,以方便在任何位置都可以通过tab键补齐shellcheck并使用。

使用shellcheck

#!/bin/bash  # 设置编译器和编译选项  
COMPILER=arm-linux-gnueabihf-g++ #CPP编译器
COMPILE_FLAGS_JSONCPP="-L /usr/local/lib /usr/local/lib/libjsoncpp.a"  #链接 jsoncp库
COMPILE_FLAGS_CGICC="-I /usr/local/cgicc-3.2.20/include -L /usr/local/cgicc-3.2.20/lib -lcgicc"  #链接 cgicc库
COMPILE_FLAGS_SQLITE3="-I /usr/local/sqlite3/include/ -L /usr/local/sqlite3/lib/ -lsqlite3"  #链接 sqlite3库
COMPILE_FLAGS_OPENSSL="-I /usr/local/arm-openssl-3.0/include/ -L /usr/local/arm-openssl-3.0/lib64/ -lcrypto"  #链接 crypto库UPHOLD_TOOLS=uphold_tools
cd $UPHOLD_TOOLS
$COMPILER -o $UPHOLD_TOOLS.cgi $UPHOLD_TOOLS.cpp $COMPILE_FLAGS_CGICC $COMPILE_FLAGS_JSONCPP $COMPILE_FLAGS_OPENSSL
if [ $? -ne 0 ]; thenecho "Error compiling $UPHOLD_TOOLS"exit 1  
fi
SYSTEM_REBOOT=system_reboot
$COMPILER -o $SYSTEM_REBOOT.cgi $SYSTEM_REBOOT.cpp $COMPILE_FLAGS_CGICC $COMPILE_FLAGS_JSONCPP
if [ $? -ne 0 ]; thenecho "Error compiling $SYSTEM_REBOOT"exit 1  
fi
cd ..
#拷贝.cgi和.sh到radio-gateway中
find $UPHOLD_TOOLS -type f \( -name "*.cgi" -o -name "*.sh" \) -exec cp {} ../radio-gateway/cgi-bin/$UPHOLD_TOOLS \;
if [ $? -ne 0 ]; then  echo "Error copy $UPHOLD_TOOLS"exit 1
fi#拷贝web源代码到radio-gateway中
cp -r ../web ../radio-gateway/
rm -rf ../radio-gateway/web/index.html
cp ../web/index.html ../radio-gateway/echo "Compilation and copy successful."

优化建议:

[root@localdomain home]# shellcheck compile.sh In compile.sh line 7:
COMPILE_FLAGS_SQLITE3="-I /usr/local/sqlite3/include/ -L /usr/local/sqlite3/lib/ -lsqlite3"  #链接 sqlite3库
^-------------------^ SC2034 (warning): COMPILE_FLAGS_SQLITE3 appears unused. Verify use (or export if used externally).In compile.sh line 11:
cd $UPHOLD_TOOLS
^--------------^ SC2164 (warning): Use 'cd ... || exit' or 'cd ... || return' in case cd fails.Did you mean: 
cd $UPHOLD_TOOLS || exitIn compile.sh line 12:
$COMPILER -o $UPHOLD_TOOLS.cgi $UPHOLD_TOOLS.cpp $COMPILE_FLAGS_CGICC $COMPILE_FLAGS_JSONCPP $COMPILE_FLAGS_OPENSSL^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.^--------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.^--------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.Did you mean: 
$COMPILER -o $UPHOLD_TOOLS.cgi $UPHOLD_TOOLS.cpp "$COMPILE_FLAGS_CGICC" "$COMPILE_FLAGS_JSONCPP" "$COMPILE_FLAGS_OPENSSL"In compile.sh line 13:
if [ $? -ne 0 ]; then^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?.In compile.sh line 18:
$COMPILER -o $SYSTEM_REBOOT.cgi $SYSTEM_REBOOT.cpp $COMPILE_FLAGS_CGICC $COMPILE_FLAGS_JSONCPP^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.^--------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.Did you mean: 
$COMPILER -o $SYSTEM_REBOOT.cgi $SYSTEM_REBOOT.cpp "$COMPILE_FLAGS_CGICC" "$COMPILE_FLAGS_JSONCPP"In compile.sh line 19:
if [ $? -ne 0 ]; then^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?.In compile.sh line 23:
cd ..
^---^ SC2103 (info): Use a ( subshell ) to avoid having to cd back.In compile.sh line 26:
if [ $? -ne 0 ]; then  ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?.For more information:https://www.shellcheck.net/wiki/SC2034 -- COMPILE_FLAGS_SQLITE3 appears unu...https://www.shellcheck.net/wiki/SC2164 -- Use 'cd ... || exit' or 'cd ... |...https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
[root@localdomain home]# 
http://www.zhongyajixie.com/news/40892.html

相关文章:

  • 龙南城市建设局网站关键词排名监控
  • 族蚂建站b2b平台免费推广网站
  • 网站主机屋的虚拟主机打开速度慢中山seo关键词
  • 建设局网站施工合同范本网站优化效果
  • 百度收录个人网站是什么怎么做英语seo
  • 怎么做网站程序网络优化的意义
  • 太原百度快速优化网站外链的优化方法
  • 顺的做网站便宜吗深圳网站开发
  • 网站做缓存吗青岛seo整站优化招商电话
  • 杭州市住房和城乡建设局杭州百度百家号seo优化排名
  • 网站用自己的电脑做服务器百度官方入口
  • 网站需要做什么公安备案海外aso优化
  • 昆明网站建设公司哪家好百度识图扫一扫
  • 惠州响应式网站建设公司微信怎么引流营销呢
  • 陕西省信用建设官方网站怎么做网站卖产品
  • 网站可以做无形资产吗百度开户多少钱
  • 校园网站开发的需求分析信息流广告代理商排名
  • 如何在淘宝网做自己的网站南宁网站制作
  • 零基础网站建设教学公司seo兼职平台
  • 张家界seo优化整站优化包年
  • 海南房产网谷歌优化培训
  • 做画册的国外网站nba最新比赛直播
  • 网站支付宝网上支付功能怎么做今日新闻快讯
  • 网站开发价格百度做广告费用
  • 什么类型的网站开发比较困难海外市场推广策略
  • 网站建设公司 佛山小程序平台
  • HTML怎么做网站目录地推怎么做最有效
  • 工商注册登记系统广东网站营销seo方案
  • 怎么做网站子页淘宝关键词搜索排行榜
  • 网站开发教程PDF微盘下载app拉新推广