fix: Properly unmount the destination partition

pull/73/head
Raphaël Vinot 2020-01-16 14:38:24 +01:00
parent 57cb2e2036
commit 82b82ec9c4
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ clean(){
rm -rf "${DST_MNT}/IN_PROGRESS.txt"*
${SYNC} # Write anything in memory to disk
# Unmount destination
${UMOUNT} -b "${DST_DEV}"
${UMOUNT} -b "${DST_DEV}1"
exit
}
@ -37,7 +37,7 @@ check_dest_exists() {
unmount_dest_if_mounted() {
if /bin/mount|grep "${DST_MNT}"; then
${UMOUNT} -b "${DST_DEV}" || true
${UMOUNT} -b "${DST_DEV}1" || true
fi
}