From b148780344a29ccce738c1f6d6492a826757fcee Mon Sep 17 00:00:00 2001 From: Albert S Date: Wed, 21 Jun 2017 12:14:34 +0200 Subject: [PATCH] exit if input file does not exist --- randrss | 1 + 1 file changed, 1 insertion(+) diff --git a/randrss b/randrss index 0669fba..78e23aa 100755 --- a/randrss +++ b/randrss @@ -13,6 +13,7 @@ inputfile="$1" useragentsfile="$2" if [ ! -f "$inputfile" ] ; then echo "inputfile does not exist or is not readable" +exit fi while true ; do shuf "$inputfile" | while read line ; do