Before installing HDD
This commit is contained in:
parent
6e701541ca
commit
4a8628231c
8 changed files with 151 additions and 30 deletions
6
config/scripts/adb_backup_extract
Executable file
6
config/scripts/adb_backup_extract
Executable 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 -
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue