From: Andres Salomon Date: Fri, 24 Oct 2008 21:42:18 +0000 (-0400) Subject: initchroot: throw an error if PLIST can't be found X-Git-Tag: v0.2~2 X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f57bfa45b8bd2d26b8f212c4d8a22e762dbd8ae4;p=xodist initchroot: throw an error if PLIST can't be found Signed-off-by: Andres Salomon --- diff --git a/initchroot.sh b/initchroot.sh index 963b377..0ee9d40 100755 --- a/initchroot.sh +++ b/initchroot.sh @@ -55,6 +55,10 @@ do ;; --package-list) PLIST=$2 + [ -f ${PLIST} ] || { + echo "Error: can't find file '${PLIST}'!" 1>&2 + exit 2 + } shift ;; --mirror)