summaryrefslogtreecommitdiff
path: root/bin/mw
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-04-21 22:21:57 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-04-21 22:21:57 -0400
commit9fbb5e6832d9f287eeba8632b3b56aed83b68208 (patch)
treefd839720116de0731febaf8e6636f3512881788e /bin/mw
parentda764165f5839364447a52556ed7d15d4c70429e (diff)
this might actually werk
Diffstat (limited to 'bin/mw')
-rwxr-xr-xbin/mw6
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/mw b/bin/mw
index ddf0680..143e187 100755
--- a/bin/mw
+++ b/bin/mw
@@ -265,15 +265,13 @@ asktype() { while : ; do
*) echo "Write out either yes or no completely. Try again or press ctrl-c to quit." ;;
esac; done ;}
-init() { \
- echo "Initializing a mutt-wizard configuration..."
- [ -f "$muttdir/muttrc" ] && echo "There is already a preexisting config. Purge the previous to reinit." && return 1
+init() { echo "Initializing a mutt-wizard configuration..."
+ [ -f "$accdir" ] && echo "There is already a preexisting config. Purge the previous to reinit." && return 1
mkdir -p "$muttdir" "$accdir"
cp -v "$muttshare/mailcap" "$muttdir"
cp -v "$muttshare/muttrc" "$muttdir"
}
-
case "$1" in
init) init ;;
ls) list ;;