This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A script to scrape a cloudformation for route53 resources and test them | |
CAT=`which cat` | |
DIFF=`which diff` | |
DIG=`which dig` | |
NAMESERVER1="" | |
NAMESERVER2="" | |
TEMPLATE="" | |
OUTPUT=0 | |
TMPOUT1="/tmp/$(basename $0)-${RANDOM}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Prevent exiting out of the root shell while still allowing it most shells to exit with C-d | |
setopt ignoreeof | |
ctrl-d () { | |
if (( $SHLVL > 1 )); then | |
exit; | |
else | |
zle -M "zsh: use 'exit' to exit" | |
return 1 |
OlderNewer