From 977b03349ab54dd013387b61cf5c0dfb2dc49b88 Mon Sep 17 00:00:00 2001
From: Luke Smith <luke@lukesmith.xyz>
Date: Fri, 22 Feb 2019 17:27:12 -0500
Subject: brainlet handling

---
 mw | 1 +
 1 file changed, 1 insertion(+)

(limited to 'mw')

diff --git a/mw b/mw
index 1f63fc9..c155d4f 100755
--- a/mw
+++ b/mw
@@ -7,6 +7,7 @@ creddir="$HOME/.local/share/muttwizard"	# Location of encrypted credentials
 bindir="$HOME/.config/mutt/bin"		# Location of scripts run by mutt or the wizard
 namere="^[a-z_][a-z0-9_-]*$"		# Regex to ensure viable username
 emailre=".\+@.\+\\..\+" 		# Regex to confirm valid email address
+[ ! -f "$muttdir/domains.csv" ] || [ ! -d "$bindir" ] && printf "Read the README. Be sure to put the repo in the right place before running.\\n" && exit 1
 gpgemail="$(cat "$creddir/gpgemail" 2>/dev/null)"	# Get previously set gpg email address
 tmpdir="$(mktemp -d)"
 GPG="gpg"; command -v gpg >/dev/null || GPG="gpg2"	# Ensure proper gpg command
-- 
cgit v1.2.3