diff options
Diffstat (limited to 'bin/newconfd')
-rwxr-xr-x | bin/newconfd | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/newconfd b/bin/newconfd index 4b1e8e7b3..6d57a343c 100755 --- a/bin/newconfd +++ b/bin/newconfd @@ -8,6 +8,11 @@ if [[ -z ${T} ]] || [[ -z ${2} ]] ; then exit 1 fi +if [ ! -e "$1" ] ; then + echo "!!! ${0##*/}: $1 does not exist" 1>&2 + exit 1 +fi + rm -rf "${T}/${2}" && \ cp -f "${1}" "${T}/${2}" && \ exec doconfd "${T}/${2}" |