From f4fbe2c167024b26fcbcdec67225ba26426253b8 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 26 May 2014 13:22:03 +1200 Subject: Correct reversed directory existence test --- bin/nwatch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/nwatch b/bin/nwatch index c89c886..e5754c4 100755 --- a/bin/nwatch +++ b/bin/nwatch @@ -35,7 +35,7 @@ cachedir=${2:?} latest=$cachedir/${self}.scan.latest # If the cachedir doesn't exist, attempt to create it, otherwise give up -if [[ -d "$cachedir" ]] ; then +if [[ ! -d "$cachedir" ]] ; then if ! mkdir -- "$cachedir" ; then exit fi -- cgit v1.2.3