diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2014-05-26 13:22:03 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2014-05-26 13:22:03 +1200 |
commit | f4fbe2c167024b26fcbcdec67225ba26426253b8 (patch) | |
tree | 8d9b002dd72229b0ebabe05a75fdabc944f9710a | |
parent | Don't create parent directories (diff) | |
download | nwatch-f4fbe2c167024b26fcbcdec67225ba26426253b8.tar.gz nwatch-f4fbe2c167024b26fcbcdec67225ba26426253b8.zip |
Correct reversed directory existence test
-rwxr-xr-x | bin/nwatch | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |