mirror of
https://github.com/sigmasternchen/Pensieve
synced 2025-03-16 00:18:56 +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
|
echo "There was an error while decrypting file. Right password?" 1>&2
|
||||||
exit $EXIT_FAILURE
|
exit $EXIT_FAILURE
|
||||||
fi
|
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
|
touch $file
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue