exit if input file does not exist

This commit is contained in:
Albert S. 2017-06-21 12:14:34 +02:00
부모 0cd4d3b927
커밋 b148780344
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제

파일 보기

@ -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