bail if the source config doesn't exist as a directory

This commit is contained in:
darrenr 1999-10-11 12:45:43 +00:00
parent 872404ddf2
commit dbbe49c38f
1 changed files with 4 additions and 0 deletions

View File

@ -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."