]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
treat case of empty argument
authorhadaq <M.Traxler@gsi.de>
Thu, 31 Aug 2017 12:55:32 +0000 (14:55 +0200)
committerhadaq <M.Traxler@gsi.de>
Thu, 31 Aug 2017 12:55:32 +0000 (14:55 +0200)
thresholds/split_thresholds.sh

index 023324a4db2712681ba9f87c7df0a9ab98ecb30d..41a102ce75cd86e5b6407e9888d555ba76eb8a12 100755 (executable)
@@ -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