代码开发复制到Git目录
#!/usr/bin/env bash
DEV_BASE=/data/src
GIT_BASE=/mnt/des
inotifywait -mrq -e create,move,delete,modify $DEV_BASE | while read path event file;do
php -f /data/cmd/copy_dev.php "$path" "$event" "$file" "$DEV_BASE" "$GIT_BASE"
done
<?php
echo date.
原创
2021-08-04 07:24:25 ·
161 阅读 ·
0 评论