From db7594cd8d528b1420872fc3a17af7c1404731d3 Mon Sep 17 00:00:00 2001 From: "louwrentius@gmail.com" Date: Mon, 22 Aug 2011 22:28:22 +0000 Subject: [PATCH] minor bug fixes --- trunk/ppss | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/trunk/ppss b/trunk/ppss index 61ecc8d..d6ce251 100755 --- a/trunk/ppss +++ b/trunk/ppss @@ -450,12 +450,25 @@ check_for_interrupt () { cleanup () { log DEBUG "$FUNCNAME - Cleaning up all temp files and processes. $1" + + for x in $MODES + do + if [ "$x" == "$MODE" ] + then + rm -rf "$PPSS_DIR" + fi + done if [ -e "$FIFO" ] then rm "$FIFO" fi + if [ -e "$FIFO_LISTENER" ] + then + rm "$FIFO_LISTENER" + fi + if [ -e "$SSH_SOCKET" ] then rm -rf "$SSH_SOCKET" @@ -2856,6 +2869,7 @@ main () { display_header test_server show_status + cleanup ;; erase ) LOGFILE=/dev/null