Fixing bug in unlock. Thanks to srm. - conn - A script repository to manage connections in Linux.
Log
Files
Refs
LICENSE
---
commit 60b63579a4dd28c88b7da1623c7e0277c641d42b
parent ed354d14198b9bb7d54fa2bfd6983c49b9e840ee
Author: Christoph Lohmann <20h@r-36.net>
Date:   Sun, 27 Feb 2011 18:11:59 +0100

Fixing bug in unlock. Thanks to srm.

Diffstat:
  etc/conn/common.sh                  |       2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/etc/conn/common.sh b/etc/conn/common.sh
@@ -43,7 +43,7 @@ lock() {
 
 unlock() {
         LOCKF="$1.lock"
-        rm $LOCKF
+        [ -e $LOCKF ] && rm $LOCKF
 }
 
 ## Global conn lock, when there is database access.