summaryrefslogtreecommitdiff
path: root/broccoli/script
diff options
context:
space:
mode:
authorRobin Krahl <guskraro@student.gu.se>2017-10-11 09:46:54 +0000
committerRobin Krahl <guskraro@student.gu.se>2017-10-11 09:46:54 +0000
commitfe4028c5d1d49b7fc6981305966dd71b7fbe46e6 (patch)
tree075b1289a4d3696ea5e318d9e7e328d90f115de1 /broccoli/script
parent213eeafebce653b13ac346ed05c139b868c208b7 (diff)
downloadmidbro-fe4028c5d1d49b7fc6981305966dd71b7fbe46e6.tar.gz
midbro-fe4028c5d1d49b7fc6981305966dd71b7fbe46e6.tar.bz2
investigate.sh: Check that the dump file really exists
Diffstat (limited to 'broccoli/script')
-rwxr-xr-xbroccoli/script/investigate.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/broccoli/script/investigate.sh b/broccoli/script/investigate.sh
index f701102..9f67949 100755
--- a/broccoli/script/investigate.sh
+++ b/broccoli/script/investigate.sh
@@ -10,6 +10,12 @@ then
exit
fi
+if [[ ! -f "$1" || ! -r "$1" ]]
+then
+ echo "Dump file $1 does not exist or cannot be read."
+ exit
+fi
+
CAPTURE_FILE=$(realpath "$1")
FILTER_MACHINE=$2
FILTER_REGISTER=$3