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
}
files=$(find . -maxdepth 1 -name "vm*" | sort)
if [ -n "$files" ]; then
for file in $files
do
cat "$file" >> vmlog
done
fi
# files=$(find . -maxdepth 1 -name "vm*" | sort)
# if [ -n "$files" ]; then
# for file in $files
# do
# cat "$file" >> vmlog
# done
# fi
if [ ! -f "vmlog" ]; then
yellow "当前目录下不存在vmlog文件"