Before installing HDD

This commit is contained in:
Geoffrey Frogeye 2020-05-03 13:24:45 +02:00
parent 6e701541ca
commit 4a8628231c
8 changed files with 151 additions and 30 deletions

View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Make sur eto install zlib-flate from the qpdf package
# Works on unencrypted only
tail -c +25 "$1" | zlib-flate -uncompress | tar xvf -

View file

@ -39,7 +39,7 @@ then
echo "Done."
elif [ -f "$orig_path" ]
then
if [ "$(file --mime-type --brief $orig_path)" != "application/pdf" ]
if [ "$(file --mime-type --brief "$orig_path")" != "application/pdf" ]
then
echo "${orig_path}: not a PDF file"
exit 1