update errors

This commit is contained in:
James Barnett
2017-02-14 17:05:51 -06:00
parent 082b43f680
commit cf02a5cf51

View File

@@ -97,9 +97,7 @@ while [[ $# -gt 0 ]]; do
exit 1 exit 1
;; ;;
*) *)
printf "ERROR: Unknown option: $key\n" die "Unknown option: $key\nRun '$name -h' for valid options.\n"
printf "Run '$name -h' for valid options.\n"
exit 1
;; ;;
esac esac
done done
@@ -281,9 +279,7 @@ for x in $selected_configs; do
if [[ -f "/etc/snapper/configs/$x" ]]; then if [[ -f "/etc/snapper/configs/$x" ]]; then
source /etc/snapper/configs/$x source /etc/snapper/configs/$x
else die "Selected snapper configuration $x does not exist."
printf "ERROR: Selected snapper configuration $x does not exist.\n"
error_exit
fi fi
cont_backup=${CONT_BACKUP_ARRAY[$i]} cont_backup=${CONT_BACKUP_ARRAY[$i]}