mirror of
https://schlomp.space/tastytea/hashboot
synced 2024-11-16 14:37:06 +01:00
Disabled some shellcheck-checks.
This commit is contained in:
parent
c9cbf76701
commit
7b2e19bdef
6
hashboot
6
hashboot
@ -12,6 +12,8 @@
|
|||||||
# If we meet some day, and you think this is nice, you can give us a hug. #
|
# If we meet some day, and you think this is nice, you can give us a hug. #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
# shellcheck disable=SC2181 # ($?)
|
||||||
|
|
||||||
VERSION="0.9.12"
|
VERSION="0.9.12"
|
||||||
PATH="/bin:/usr/bin:/sbin:/usr/sbin:${PATH}"
|
PATH="/bin:/usr/bin:/sbin:/usr/sbin:${PATH}"
|
||||||
DIGEST_FILE=""
|
DIGEST_FILE=""
|
||||||
@ -64,7 +66,8 @@ write_hashes ()
|
|||||||
fi
|
fi
|
||||||
if [ $((CKMODES & 010)) -ne 0 ]; then
|
if [ $((CKMODES & 010)) -ne 0 ]; then
|
||||||
#Write hashes of all regular files to ${file}
|
#Write hashes of all regular files to ${file}
|
||||||
find /boot -type f -exec ${HASHER} --binary {} >> "${file}" +
|
# shellcheck disable=SC2227
|
||||||
|
find /boot -type f -exec sh -c ${HASHER} --binary "${1}" >> "${file}" _ {} +
|
||||||
fi
|
fi
|
||||||
if [ $((CKMODES & 100)) -ne 0 ]; then
|
if [ $((CKMODES & 100)) -ne 0 ]; then
|
||||||
#read bios to file
|
#read bios to file
|
||||||
@ -272,6 +275,7 @@ then
|
|||||||
echo "Restoring files from backup... (type yes or no for each file)"
|
echo "Restoring files from backup... (type yes or no for each file)"
|
||||||
|
|
||||||
#For each failed file: ask if it should be recovered from backup
|
#For each failed file: ask if it should be recovered from backup
|
||||||
|
# shellcheck disable=2013
|
||||||
for file in $(cut -d: -f1 ${LOG_FILE})
|
for file in $(cut -d: -f1 ${LOG_FILE})
|
||||||
do
|
do
|
||||||
tar -xpPvwf ${BACKUP_FILE} "${file}"
|
tar -xpPvwf ${BACKUP_FILE} "${file}"
|
||||||
|
Loading…
Reference in New Issue
Block a user