Update create_vm.sh

This commit is contained in:
spiritLHLS 2023-04-11 12:18:05 +08:00 committed by GitHub
parent 73028f86b1
commit 5f0cb2040d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,13 +26,13 @@ pre_check(){
fi fi
} }
files=$(find . -maxdepth 1 -name "vm*" | sort) # files=$(find . -maxdepth 1 -name "vm*" | sort)
if [ -n "$files" ]; then # if [ -n "$files" ]; then
for file in $files # for file in $files
do # do
cat "$file" >> vmlog # cat "$file" >> vmlog
done # done
fi # fi
if [ ! -f "vmlog" ]; then if [ ! -f "vmlog" ]; then
yellow "当前目录下不存在vmlog文件" yellow "当前目录下不存在vmlog文件"