added extension .tomb.key to a specified key file (-k param)

This commit is contained in:
Anathema 2011-08-29 23:52:50 +02:00
parent 9fbb620c60
commit d486c45f53

View File

@ -352,7 +352,7 @@ create_tomb() {
# make sure the file has a .tomb extension # make sure the file has a .tomb extension
tombname=${tombfile%%\.*} tombname=${tombfile%%\.*}
tombfile=${tombname}.tomb tombfile=${tombname}.tomb
tombsize=$opts[-s] tombsize=$opts[-s]
if [[ $tombsize != <-> ]]; then if [[ $tombsize != <-> ]]; then
error "Size is not an integer" error "Size is not an integer"
@ -366,7 +366,7 @@ create_tomb() {
fi fi
if option_is_set -k; then if option_is_set -k; then
tombkey=`option_value -k` tombkey="`option_value -k`.tomb.key"
else else
tombkey="${tombdir}/${tombfile}.key" tombkey="${tombdir}/${tombfile}.key"
fi fi
@ -436,7 +436,7 @@ create_tomb() {
exit 1 exit 1
fi fi
notice "Setup your secret key file ${tombname}.tomb.key" notice "Setup your secret key file ${tombkey}"
# here user is prompted for key password # here user is prompted for key password
for c in 1 2 3; do for c in 1 2 3; do