Skip to content

Instantly share code, notes, and snippets.

#!/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}"
# 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