update.sh

来自「站点映像程序」· Shell 代码 · 共 18 行

SH
18
字号
#!/bin/sh# A sample script to create a 'Recent Changes' type file# for a site before each update.#   (this file placed in the public domain) - Joe Orton#### Alter the following accordingly, else it won't work. ####html=~/sitedir/changes.htmlawkf=/usr/share/sitecopy/changes.awksitename=mysiteif sitecopy --list ${sitename} > /dev/null; then	echo No changes to the site.	exitfisitecopy --flatlist ${sitename} | awk -f ${awkf} > ${html}sitecopy --update ${sitename}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?