armbian-next: curb free_loop_device_retried()'s logging on first try

This commit is contained in:
Ricardo Pardini
2023-01-11 17:35:24 +01:00
parent 1ed9dada4d
commit 5b024f64ad

View File

@@ -100,6 +100,8 @@ function free_loop_device_insistent() {
}
function free_loop_device_retried() {
display_alert "Freeing loop device (try ${RETRY_RUNS})" "${1}"
if [[ ${RETRY_RUNS} -gt 1 ]]; then
display_alert "Freeing loop device (try ${RETRY_RUNS})" "${1}"
fi
losetup -d "${1}"
}