mirror of
https://github.com/sigmasternchen/Pensieve
synced 2025-03-15 07:58:54 +00:00
check for non-existing diary
This commit is contained in:
parent
db6b4ac064
commit
0dc694fd06
1 changed files with 6 additions and 1 deletions
7
pensieve
7
pensieve
|
@ -92,7 +92,12 @@ if test "$mode" = "add"; then
|
|||
echo "There was an error while decrypting file. Right password?" 1>&2
|
||||
exit $EXIT_FAILURE
|
||||
fi
|
||||
else
|
||||
else
|
||||
echo -n "File not found. Create new diary? [y/n] "
|
||||
read yn
|
||||
if test "$yn" != "yes" -a "$yn" != "y"; then
|
||||
exit $EXIT_SUCCESS
|
||||
fi
|
||||
touch $file
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue