From dbbe49c38f94e0559ad56e90312f4d85fa40f561 Mon Sep 17 00:00:00 2001 From: darrenr Date: Mon, 11 Oct 1999 12:45:43 +0000 Subject: [PATCH] bail if the source config doesn't exist as a directory --- sbin/newbtconf/newbtconf.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sbin/newbtconf/newbtconf.sh b/sbin/newbtconf/newbtconf.sh index d020c97795fd..76f9ea9b002c 100644 --- a/sbin/newbtconf/newbtconf.sh +++ b/sbin/newbtconf/newbtconf.sh @@ -50,6 +50,10 @@ if [ -z "`expr $orig : 'etc.\(.*\)'`" ] ; then orig=etc.$orig fi +if [ ! -d /etc/$orig ] ; then + echo "Original directory /etc/$orig does not exist." + exit 1; +fi mkdir -m 755 /etc/$dir cp -p /etc/$orig/* /etc/$dir echo "/etc/$dir has now been created and populated."