博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
粗暴的手动更新方式等效git更新
阅读量:6331 次
发布时间:2019-06-22

本文共 2042 字,大约阅读时间需要 6 分钟。

hot3.png

由于俩网络,更新太不自动化。在github上,能够通过 commit 看到更新后的文件。按行保存如下方式。

# file.list Yii.php backend/views/site/dashboard.php common/behaviors/CategoryBehavior.php common/helpers/StringHelper.php common/modules/attachment/Module.php common/modules/attachment/actions/UploadAction.php common/modules/attachment/actions/UploadController.php common/modules/attachment/components/FilesystemAdapter.php common/modules/attachment/components/FilesystemManager.php common/modules/attachment/components/Storage.php common/modules/attachment/components/UploadedFile.php common/modules/attachment/components/contracts/Cloud.php common/modules/attachment/components/contracts/Factory.php common/modules/attachment/components/contracts/FileNotFoundException.php common/modules/attachment/components/contracts/Filesystem.php common/modules/attachment/components/contracts/ImageProcessor.php common/modules/attachment/components/flysystem/LocalAdapter.php common/modules/attachment/components/flysystem/LocalFilesystem.php common/modules/attachment/components/flysystem/QiniuAdapter.php common/modules/attachment/components/flysystem/QiniuFilesystem.php common/modules/attachment/components/image/Local.php common/modules/attachment/components/image/Processor.php common/modules/attachment/components/image/Qiniu.php common/modules/attachment/config.php common/modules/attachment/models/Attachment.php common/modules/message/frontend/views/default/create.php common/modules/message/frontend/views/default/index.php common/modules/user/frontend/controllers/SettingsController.php common/modules/user/frontend/views/default/index.php common/modules/user/models/Profile.php common/modules/user/models/Token.php database/migrations/m160726_093217_create_user_table.php frontend/themes/basic/suggest/index.php frontend/widgets/comment/views/create.php

目的文件夹为 old,新文件夹为 new,使用命令行如下

#! /bin/bashwhile read linedo    if [ -a $line ] ; then        cp $line ../old/$line    else        rm ../old/$line    fidone < ./file.list

尚未测试可用否。

转载于:https://my.oschina.net/bubifengyun/blog/1457251

你可能感兴趣的文章
我的写作清单
查看>>
Linux关于硬件的杂项
查看>>
《Effective C++》 读书笔记之三 资源管理
查看>>
AD域导入导出用户
查看>>
在GRE隧道上配置基于预共享密钥的IPsec
查看>>
PostgreSQL运维命令整理
查看>>
quidway secpath的系统管理
查看>>
excel显示模块未找到
查看>>
java Modifier.toString(int mod)机制探讨
查看>>
为什么有了自动驾驶汽车,路上一样会堵车?
查看>>
【桌面虚拟化】之一愿景和现实
查看>>
进程间通信:共享内存
查看>>
构建AIX环境下的RAC之--配置内核参数(3)
查看>>
教徒计划出品:FreeNAS 8.0安装
查看>>
NA-NP-IE系列实验7:CDP
查看>>
Mybatis中的一对多及多对一举例
查看>>
关于服务器选型的解决方案
查看>>
学生机房虚拟化(十三)虚拟机NAT故障排除
查看>>
[分治递归]解决最大子序列和问题
查看>>
Linux配置手册(五)Linux 配置域名服务器(DNS)
查看>>