Optimized shellcheck hints

This commit is contained in:
2020-05-06 09:25:53 +02:00
parent ab176c51b2
commit 7226d6b331
2 changed files with 13 additions and 6 deletions

View File

@@ -1,5 +1,7 @@
#!/bin/bash
info "Backupscript for memory devices started"
# shellcheck disable=SC2010
# shellcheck disable=SC2015 # Deactivating bool hint
info "Backupscript for memory devices started..."
echo
info "Actual mounted devices:"
echo
@@ -26,5 +28,9 @@ done
info "Input file: $ifi"
info "Output file: $ofi"
question "Please confirm by pushing \"Enter\". To cancel use \"Ctrl + Alt + C\""
read -r bestaetigung
dd if="$ifi" of="$ofi" bs=1M status=progress
read -r bestaetigung && echo "$bestaetigung";
info "Imagetransfer starts. This can take a while..." &&
dd if="$ifi" of="$ofi" bs=1M status=progress || error "\"dd\" failed.";
success "Imagetransfer successfull." && exit 0;