From 75841cf0ca5c2790cb589a592c8af683fe04cbad Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sat, 21 Aug 2010 11:46:48 -0400 Subject: Check to make sure uzbl called endinstance --- examples/data/scripts/session.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples/data/scripts/session.sh') diff --git a/examples/data/scripts/session.sh b/examples/data/scripts/session.sh index d7bb322..c226c29 100755 --- a/examples/data/scripts/session.sh +++ b/examples/data/scripts/session.sh @@ -39,6 +39,10 @@ case $act in ;; "endinstance" ) + if [ "x$UZBL_FIFO" = "x" ]; then + echo "session manager: endinstance must be called from uzbl" + exit 1 + fi if [ ! "$UZBL_URL" = "(null)" ]; then echo "$UZBL_URL" >> $UZBL_SESSION_FILE fi -- cgit v1.2.3