PC-202302260912\Administrator 2023-08-03 15:11:12 +08:00
parent 583c232a50
commit 125d03656e
1 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ is_valid_ip() {
# 显示指定目录下的文件或目录
show_file(){
filer=$1
find /data/update/"$filer" -maxdepth 1 \( -type f -o -type d \) -printf "%T@\t%-40f\n" | sort -n | awk '{print $2"\t"strftime("%Y-%m-%d %H:%M:%S", $1)}'
find /data/update/"$filer" -maxdepth 1 \( -type f -o -type d \) -printf "%T@\t%-20f\n" | sort -n | awk '{print strftime("%Y-%m-%d %H:%M:%S", $1)"\t"$2}'
}
# 发包并解压缩
@ -60,7 +60,7 @@ unzip_package(){
echo "处理完成服务器 $ip "
else
echo "$source_tar/$package 不存在,请先去打包!"
gm
return
fi
}