From 1dc4566e6531603cc851a74474e5cd1a9f7e29b2 Mon Sep 17 00:00:00 2001 From: hadaq Date: Thu, 31 Aug 2017 14:55:32 +0200 Subject: [PATCH] treat case of empty argument --- thresholds/split_thresholds.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/thresholds/split_thresholds.sh b/thresholds/split_thresholds.sh index 023324a..41a102c 100755 --- a/thresholds/split_thresholds.sh +++ b/thresholds/split_thresholds.sh @@ -1,3 +1,8 @@ +if test -z "$1"; then + echo "usage: ./split_thresholds.sh filename" + exit +fi + grep "endpoint: 0x2000, chain: 00" $1 > mcp00.log grep "endpoint: 0x2000, chain: 01" $1 >> mcp00.log grep "endpoint: 0x2000, chain: 02" $1 >> mcp00.log -- 2.43.0