Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
0cc19592
Commit
0cc19592
authored
Jul 09, 2013
by
Dan Reading
Browse files
unset errexit_val so simple commands don't cause a script ERR exit
parent
e51b1c5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/common/checknode/timecheck
View file @
0cc19592
...
...
@@ -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
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment