add die function for pacstrap-docker

This commit is contained in:
Stefan Agner 2019-01-24 16:01:04 +01:00
parent 2d4fde8457
commit 061773dd9f

View file

@ -1,5 +1,9 @@
#!/bin/bash
out() { printf "$1 $2\n" "${@:3}"; }
error() { out "==> ERROR:" "$@"; } >&2
die() { error "$@"; exit 1; }
(( $# )) || die "No root directory specified"
newroot=$1; shift
pacman_args=("${@:-base}")