Code optimization

This commit is contained in:
longpanda
2023-01-04 15:39:03 +08:00
parent 1de7489c6d
commit a18aa36c01
7 changed files with 48 additions and 19 deletions

View File

@@ -892,3 +892,17 @@ ventoy_check_umount() {
fi
done
}
ventoy_wait_dir() {
vtdir=$1
vtsec=0
while [ $vtsec -lt $2 ]; do
if [ -d "$vtdir" ]; then
break
else
$SLEEP 1
vtsec=$(expr $vtsec + 1)
fi
done
}