summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2020-11-27 15:49:51 -0800
committerBen Sima <ben@bsima.me>2020-11-27 15:50:05 -0800
commit98933de8327fe9adda203f2da74d9ad35c117bb7 (patch)
treeea157c0170b223cc3d6b5ebdd39370e1ef353a42 /install.sh
parent330845b0f7cfc2a1b3ba051964242984a3e5568e (diff)
fix symlink detection
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index e6108b3..1e8d2a9 100755
--- a/install.sh
+++ b/install.sh
@@ -20,7 +20,7 @@ NIXFILE="$(pwd)/$1"
# override with a symlink.
#
mkdir -p ~/.config/notmuch
-[[ ! -e ~/.notmuch-config ]] || ln -s ~/.config/notmuch/notmuchrc ~/.notmuch-config
+[[ -e ~/.notmuch-config ]] || ln -s ~/.config/notmuch/notmuchrc ~/.notmuch-config
#
# symlinking must occur before initial generation. now we can install, and
# pin our own nixpkgs.