From 136c1c13ca246de3a21b544cc5fb26eb47b97ced Mon Sep 17 00:00:00 2001 From: louwrentius Date: Mon, 22 Aug 2011 22:28:22 +0000 Subject: [PATCH] minor bug fixes --- ppss | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ppss b/ppss index 61ecc8d..d6ce251 100755 --- a/ppss +++ b/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