summaryrefslogtreecommitdiff
path: root/bin/istream.sh
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-04-01 15:03:36 +0200
committerTheTroll <trolldev@gmail.com>2010-04-01 15:03:36 +0200
commitd6420501bc777be979d89171e7ed131273d97c58 (patch)
treea36fbfb4169383c55ff43ed1fee4f55a54568bc7 /bin/istream.sh
parentf71315d724f52551980f50b446697fe6130fc451 (diff)
downloadistreamdev-d6420501bc777be979d89171e7ed131273d97c58.tar.gz
istreamdev-d6420501bc777be979d89171e7ed131273d97c58.tar.bz2
Error handling
Diffstat (limited to 'bin/istream.sh')
-rwxr-xr-xbin/istream.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/istream.sh b/bin/istream.sh
index 09503d3..1e843e0 100755
--- a/bin/istream.sh
+++ b/bin/istream.sh
@@ -31,6 +31,12 @@ fi
# sending it to the segmenter via a PIPE
##############################################################
+# Check that the session dir exists
+if [ ! -e ../ram/$SESSION ]
+then
+ exit;
+fi
+
cd ../ram/$SESSION
# Create a fifo