Error handling update

This commit is contained in:
kake26 2024-05-30 21:09:08 -05:00
parent 121be8565a
commit 0a4abf7527
Signed by: kake26
GPG key ID: E8AFC43591876B4D
4 changed files with 32 additions and 0 deletions

View file

@ -1,6 +1,14 @@
#!/bin/bash
source ./restore.lib.bash
if [[ $? -ne 0 ]]; then
echo "Failed to source restore.lib.bash"
exit 1
fi
export DEBIAN_FRONTEND=noninteractive
# we call cp directly and check for a cp alias
cpapp=$(which cp)