Refactored code and solved bugs

This commit is contained in:
2024-07-21 15:30:17 +02:00
parent e8581cb448
commit e40974f56d
3 changed files with 24 additions and 28 deletions

View File

@@ -102,7 +102,7 @@ overwrite_device() {
info "Overwriting entire device..." &&
dd if=/dev/zero of="$device_path" bs="$OPTIMAL_BLOCKSIZE" status=progress || error "Overwriting $device_path failed."
;;
N)
N|'')
info "Skipping Overwriting..."
;;
''|*[!0-9]*)