]> spindle.queued.net Git - xodist/commitdiff
initchroot: throw an error if PLIST can't be found
authorAndres Salomon <dilinger@mail.queued.net>
Fri, 24 Oct 2008 21:42:18 +0000 (17:42 -0400)
committerAndres Salomon <dilinger@mail.queued.net>
Fri, 24 Oct 2008 21:42:18 +0000 (17:42 -0400)
Signed-off-by: Andres Salomon <dilinger@mail.queued.net>
initchroot.sh

index 963b37786131eef9abaf334ba2dbc236503db2d4..0ee9d40cd0abf4c00f402169d52134a96d9475df 100755 (executable)
@@ -55,6 +55,10 @@ do
                ;;
        --package-list)
                PLIST=$2
+               [ -f ${PLIST} ] || {
+                       echo "Error: can't find file '${PLIST}'!" 1>&2
+                       exit 2
+               }
                shift
                ;;
        --mirror)