Commit 0cc19592 authored by Dan Reading's avatar Dan Reading
Browse files

unset errexit_val so simple commands don't cause a script ERR exit

parent e51b1c5c
......@@ -61,6 +61,8 @@ fi
{
unset -v d ; declare -a d=()
save_e
set +e
dnsok=$(host $ntpserver) 2>/dev/null
if [ "${dnsok/NXDOMAIN}" != "$dnsok" ] ; then
echo -n "WARNING ntpserver $ntpserver unknown. " >> ${logfile}
......@@ -110,6 +112,7 @@ case $os in
failed="os $os unknown"
;;
esac
restore_e
} >> ${tmplog} 2>&1
echo -n "Timecheck `date`: " >> ${logfile}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment