From ded839fbca5164704ac11e70944eeb281dd80c06 Mon Sep 17 00:00:00 2001 From: f3rn0s Date: Mon, 19 Feb 2018 01:11:25 +1100 Subject: [PATCH] Add directory check Didn't catch that important step, would be neat if the script warned you. --- mutt-wizard.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mutt-wizard.sh b/mutt-wizard.sh index 559c19d..c826424 100755 --- a/mutt-wizard.sh +++ b/mutt-wizard.sh @@ -2,6 +2,12 @@ muttdir="$HOME/.config/mutt/" +if [ $muttdir == "$(pwd)" ] +then + echo "The contents of this repository should be placed inside .config/mutt" + pause +fi + changePassword() { \ gpgemail=$( dialog --title "Luke's mutt/offlineIMAP password wizard" --inputbox "Insert the email address with which you originally created your GPG key pair. This is NOT necessarily the email you want to configure." 10 60 3>&1 1>&2 2>&3 3>&- ) dialog --title "Luke's mutt/offlineIMAP password wizard" --passwordbox "Enter the new password for the \"$1\" account." 10 60 2> /tmp/$1