From f57bfa45b8bd2d26b8f212c4d8a22e762dbd8ae4 Mon Sep 17 00:00:00 2001 From: Andres Salomon Date: Fri, 24 Oct 2008 17:42:18 -0400 Subject: [PATCH] initchroot: throw an error if PLIST can't be found Signed-off-by: Andres Salomon --- initchroot.sh | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.39.5