Skip to content

Commit 48601bb

Browse files
authored
Fix bashisms and whitespace
Make the script compatible with any POSIX shell Obtained from FreeBSD ports
1 parent c3fed3e commit 48601bb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

dnsmap-bulk.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#!/bin/bash
2-
if [[ $# -ne 1 && $# -ne 2 ]]
1+
#!/bin/sh
2+
if [ $# -ne 1 -a $# -ne 2 ]
33
then
44
echo "usage: `basename $0` <domains-file> [results-path]";
55
echo "e.g.:";
@@ -9,11 +9,11 @@ then
99
fi
1010
for i in `cat $1`
1111
do
12-
if [[ $# -eq 1 ]]
13-
then
12+
if [ $# -eq 1 ]
13+
then
1414
dnsmap $i
15-
elif [[ $# -eq 2 ]]
15+
elif [ $# -eq 2 ]
1616
then
1717
dnsmap $i -r $2
1818
fi
19-
done
19+
done

0 commit comments

Comments
 (0)