From 5bc781bd38ea4141e5e3b9110bf28214773cf1a3 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 20 Sep 2012 18:13:25 +0200 Subject: Quit if pwgen returns nothing. Reported-by: Brian Mattern --- src/password-store.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'src/password-store.sh') diff --git a/src/password-store.sh b/src/password-store.sh index 5075bb8..9923907 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -312,6 +312,7 @@ case "$command" in [[ $force -eq 0 && -e $passfile ]] && yesno "An entry already exists for $path. Overwrite it?" pass="$(pwgen -s $symbols $length 1)" + [[ -n $pass ]] || exit 1 $GPG -e -r "$ID" -o "$passfile" $GPG_OPTS <<<"$pass" git_add_file "$passfile" "Added generated password for $path to store." -- cgit v1.2.3-70-g09d2 2d7f5386fc7cf78495fdb05ad59a04'/> Feed2Imap + GroupsRené 'Necoro' Neumann
summaryrefslogtreecommitdiff
Commit message (Expand)AuthorFilesLines
2020-04-16Delete obsolete stuffRené 'Necoro' Neumann12-880/+0
2020-04-15More info for cleaning channelsRené 'Necoro' Neumann2-1/+11
2020-04-15Cleanup cacheRené 'Necoro' Neumann2-5/+61
2017-09-13Rename config to RbConfigruby22René 'Necoro' Neumann1-1/+1
2016-03-25Fix pythonismgroupsRené 'Necoro' Neumann1-17/+15
2016-03-25Take the 'group' value if no target is givenRené 'Necoro' Neumann1-1/+1
2016-03-25Groups support for feedsRené 'Necoro' Neumann1-7/+31
2016-03-25images are now rendered inline, no need for the multipart handlingmailRené 'Necoro' Neumann1-22/+6
2016-03-25image uri's may contain spacesRené 'Necoro' Neumann1-1/+6
2016-03-25Only one instance of the fetcher neededRené 'Necoro' Neumann1-1/+1
2016-03-25Replace RMail by Mail. This also reduces the handling we have to do ourselves.René 'Necoro' Neumann2-62/+65
2016-03-25Use debug mode for testingRené 'Necoro' Neumann1-1/+1
2016-03-25Add mail to the dependenciesRené 'Necoro' Neumann1-0/+1
2015-06-09itemtomail: embed images using data: URLsHEADmasterAntonio Terceiro1-18/+2
2015-05-10Bump versionAntonio Terceiro1-1/+1
2015-05-10Fix regression in `include-images` optionAntonio Terceiro3-8/+16
2015-05-03Bump versionAntonio Terceiro1-1/+1
2015-05-03Fix usage of filtersAntonio Terceiro2-16/+24
2015-01-13Handle being given numbers as feed nameAntonio Terceiro2-0/+16
2015-01-13Rakefile: remove wrong (and thus unused) flagAntonio Terceiro1-1/+0
2015-01-13Remove deprecated 'test suite' fileAntonio Terceiro1-12/+0
2015-01-13Rakefile: re-indentAntonio Terceiro1-35/+35
2015-01-13Rakefile: run tests in verbose modeAntonio Terceiro1-1/+2
2014-10-071.2.3 releaseAntonio Terceiro1-1/+1
2014-10-07Fix cleanup of maildirsAntonio Terceiro3-1/+16
2014-05-18feed2imap-test: reuse cache dir/protect configAntonio Terceiro1-1/+1
2014-02-13feed2imap-test: can now take a feed URL as argumentAntonio Terceiro1-3/+22
2014-02-13update .gitignoreAntonio Terceiro1-0/+2
2014-02-13fix dependency on ruby-feedparserAntonio Terceiro1-1/+1
2014-02-05Release 1.2.2Antonio Terceiro2-2/+2
2014-02-05config: fix regression with arrays as targetAntonio Terceiro2-1/+17
2013-08-28Fix teardown method nameAntonio Terceiro1-1/+1