changes
This commit is contained in:
		@@ -31,7 +31,7 @@ The mutt-wizard is run with the command `mw`. It also installs the `mailsync` co
 | 
				
			|||||||
- `mw add` -- add a new email account
 | 
					- `mw add` -- add a new email account
 | 
				
			||||||
- `mw ls` -- list existing accounts
 | 
					- `mw ls` -- list existing accounts
 | 
				
			||||||
- `mw pass` -- revise an account's password
 | 
					- `mw pass` -- revise an account's password
 | 
				
			||||||
- `mw delete` -- deleted an added account
 | 
					- `mw delete` -- delete an added account
 | 
				
			||||||
- `mw purge` -- delete all accounts and settings
 | 
					- `mw purge` -- delete all accounts and settings
 | 
				
			||||||
- `mw cron` -- toggle/configure a cronjob to sync mail
 | 
					- `mw cron` -- toggle/configure a cronjob to sync mail
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -114,4 +114,3 @@ mutt-wizard is free/libre software, licensed under the GPLv3.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
- Add ~~Mac OS~~/BSD compatibility (the script is confired to work for Mac OS now)
 | 
					- Add ~~Mac OS~~/BSD compatibility (the script is confired to work for Mac OS now)
 | 
				
			||||||
- ~~Out-of-the-box compatibility with Protonmail Bridge~~ (I believe this is done, but more bug-testing is welcome since I don't have PM)
 | 
					- ~~Out-of-the-box compatibility with Protonmail Bridge~~ (I believe this is done, but more bug-testing is welcome since I don't have PM)
 | 
				
			||||||
- Option to keep configuration for accounts that failed to connect (maybe)
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								bin/mw
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								bin/mw
									
									
									
									
									
								
							@@ -4,7 +4,7 @@ command -V gpg >/dev/null 2>&1 && GPG="gpg" || GPG="gpg2"
 | 
				
			|||||||
[ -z ${PASSWORD_STORE_DIR+x} ] && PASSWORD_STORE_DIR="$HOME/.password-store"
 | 
					[ -z ${PASSWORD_STORE_DIR+x} ] && PASSWORD_STORE_DIR="$HOME/.password-store"
 | 
				
			||||||
[ -r "$PASSWORD_STORE_DIR/.gpg-id" ] &&
 | 
					[ -r "$PASSWORD_STORE_DIR/.gpg-id" ] &&
 | 
				
			||||||
    "$GPG" --list-secret-keys $(cat "$PASSWORD_STORE_DIR/.gpg-id") >/dev/null 2>&1 || {
 | 
					    "$GPG" --list-secret-keys $(cat "$PASSWORD_STORE_DIR/.gpg-id") >/dev/null 2>&1 || {
 | 
				
			||||||
        printf "\`pass\` must be installed and initialized to encrypt passwords.\\nBe sure it is installed and run \`pass init <yourgpgemail>\`.\\nIf you don't have a GPG public private key pair, run \`$GPG --full-gen-key\` first.\\n"
 | 
					        printf "\`pass\` must be installed and initialized to encrypt passwords.\\nBe sure it is installed and run \`pass init <yourgpgemail>\`.\\nIf you don't have a GPG public private key pair, run \`%s --full-gen-key\` first.\\n" "$GPG"
 | 
				
			||||||
        exit
 | 
					        exit
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
! command -v mbsync >/dev/null && printf "\`mbsync\` must be installed to run mutt-wizard.\\n" && exit
 | 
					! command -v mbsync >/dev/null && printf "\`mbsync\` must be installed to run mutt-wizard.\\n" && exit
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user