exit if input file does not exist
This commit is contained in:
parent
0cd4d3b927
commit
b148780344
1
randrss
1
randrss
@ -13,6 +13,7 @@ inputfile="$1"
|
|||||||
useragentsfile="$2"
|
useragentsfile="$2"
|
||||||
if [ ! -f "$inputfile" ] ; then
|
if [ ! -f "$inputfile" ] ; then
|
||||||
echo "inputfile does not exist or is not readable"
|
echo "inputfile does not exist or is not readable"
|
||||||
|
exit
|
||||||
fi
|
fi
|
||||||
while true ; do
|
while true ; do
|
||||||
shuf "$inputfile" | while read line ; do
|
shuf "$inputfile" | while read line ; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user