#!/bin/bash set -x export PATH="/usr/local/bin:/usr/bin:/bin:/opt/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/opt/toolchain/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin:/opt/FriendlyARM/toolschain/4.4.3/bin:/c/Users/jimmy/AppData/Roaming/npm:/c/Program Files/nodejs" cd /e/hexo/ hexo new "new"
update.sh
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/bash set -x export PATH="/usr/local/bin:/usr/bin:/bin:/opt/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/opt/toolchain/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin:/opt/FriendlyARM/toolschain/4.4.3/bin:/c/Users/jimmy/AppData/Roaming/npm:/c/Program Files/nodejs" cd /e/demonelf.github.io/ git pull cd /e/hexo/ hexo g rsync -Pv --size-only /e/hexo/public/* /e/demonelf.github.io/ -ar rsync -Pv --size-only /e/hexo/source/_posts/* /e/demonelf.github.io/ -ar cd /e/demonelf.github.io/ git add -A git commit -m "1.自动更新" git push