make indent spacing configurable
This commit is contained in:
parent
dadfa15c5c
commit
26b3260416
@ -10,10 +10,11 @@ esac
|
|||||||
COUNT=0
|
COUNT=0
|
||||||
DEPTH=0
|
DEPTH=0
|
||||||
mDEPTH=0
|
mDEPTH=0
|
||||||
|
INDENT=2
|
||||||
checkIncludes() {
|
checkIncludes() {
|
||||||
SPF=$1
|
SPF=$1
|
||||||
for I in $(dig -t txt $SPF +short|grep -oE "include:.* |ip[4,6]:.* "|sed 's/include://g; s/ip[4,6]://g; s/\"//g'|tr ' ' '\n'); do
|
for I in $(dig -t txt $SPF +short|grep -oE "include:.* |ip[4,6]:.* "|sed 's/include://g; s/ip[4,6]://g; s/\"//g'|tr ' ' '\n'); do
|
||||||
[[ $DEBUG ]] && printf "%*s%s %s\n" $(($DEPTH*2)) '' "$I"
|
[[ $DEBUG ]] && printf "%*s%s %s\n" $(($DEPTH*$INDENT)) '' "$I"
|
||||||
if [[ ! ${I} =~ ^[0-9] ]]; then
|
if [[ ! ${I} =~ ^[0-9] ]]; then
|
||||||
DEPTH=$(($DEPTH+1))
|
DEPTH=$(($DEPTH+1))
|
||||||
mDEPTH=$(($mDEPTH+1))
|
mDEPTH=$(($mDEPTH+1))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user