mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-12-31 21:21:56 +00:00
added extension .tomb.key to a specified key file (-k param)
This commit is contained in:
parent
9fbb620c60
commit
d486c45f53
6
src/tomb
6
src/tomb
@ -352,7 +352,7 @@ create_tomb() {
|
||||
# make sure the file has a .tomb extension
|
||||
tombname=${tombfile%%\.*}
|
||||
tombfile=${tombname}.tomb
|
||||
tombsize=$opts[-s]
|
||||
tombsize=$opts[-s]
|
||||
|
||||
if [[ $tombsize != <-> ]]; then
|
||||
error "Size is not an integer"
|
||||
@ -366,7 +366,7 @@ create_tomb() {
|
||||
fi
|
||||
|
||||
if option_is_set -k; then
|
||||
tombkey=`option_value -k`
|
||||
tombkey="`option_value -k`.tomb.key"
|
||||
else
|
||||
tombkey="${tombdir}/${tombfile}.key"
|
||||
fi
|
||||
@ -436,7 +436,7 @@ create_tomb() {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
notice "Setup your secret key file ${tombname}.tomb.key"
|
||||
notice "Setup your secret key file ${tombkey}"
|
||||
|
||||
# here user is prompted for key password
|
||||
for c in 1 2 3; do
|
||||
|
Loading…
Reference in New Issue
Block a user