Update diy.sh

转换vdi之后,赋予可执行权限。方便虚拟机调用
This commit is contained in:
悟空的日常镜像仓库 2023-12-06 14:01:26 +08:00
parent d595765867
commit 1201a4dc91
1 changed files with 1 additions and 0 deletions

View File

@ -148,6 +148,7 @@ convert_vm_format() {
# 检查命令是否成功执行 # 检查命令是否成功执行
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
sudo chmod 755 $target_path
Show 0 "转换成功。转换后的文件位于:$target_path" Show 0 "转换成功。转换后的文件位于:$target_path"
else else
Show 1 "转换失败,请检查输入的路径和文件。" Show 1 "转换失败,请检查输入的路径和文件。"