Skip to content

Commit

Permalink
Make it a fatal error if hostname cannot be determined
Browse files Browse the repository at this point in the history
  • Loading branch information
Jehops committed Dec 1, 2018
1 parent 3cdbb07 commit 30ed998
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zap
Original file line number Diff line number Diff line change
Expand Up @@ -565,8 +565,7 @@ esac
date=$(date '+%Y-%m-%dT%H:%M:%S%z' | sed 's/+/p/')
hn=$(hostname -s)
if [ -z "$hn" ]; then
warn "Failed to find hostname."
exit 1
fatal "Failed to find hostname."
fi

# extended REs for egrep
Expand Down

0 comments on commit 30ed998

Please sign in to comment.