代码拉取完成,页面将自动刷新
#!/bin/bash
################################################################
# Function :Back up private directories and scripts to a fixed location
# Platform :All Linux Based Platform
# desc :备份私有目录和脚本到固定的位置
# Version :1.0
# Date :2023-09-09
# Author :ncnynl
# Contact :1043931@qq.com
# Company :Foshan AiZheTeng Information Technology Co.,Ltd.
# URL: https://ncnynl.com
################################################################
source ${HOME}/commands/cs_utils.sh
function sync_private()
{
#if exists ?
if [ ! -d ~/tools/commands_private ]; then
mkdir -p ~/tools/commands_private
fi
hint "Begin to sync file to commands_private!!"
# keep _dir
rsync -azv ~/tools/commands/commands_extra/_* ~/tools/commands_private/
rsync -azv --include="_*/shell/.description" ~/tools/commands/commands_extra/_* ~/tools/commands_private/
# keep dir/_*.sh
rsync -azv --delete --prune-empty-dirs --include='*/' --include='_*.sh' --exclude='*' ~/tools/commands/commands_extra/ ~/tools/commands_private/
hint "Done!! Please submit to repo"
}
sync_private $*
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。