mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2025-04-07 10:11:51 +00:00
Update new strings to the new format.
This commit is contained in:
parent
118ace28ef
commit
20a59fdf7b
18
tomb
18
tomb
@ -154,14 +154,14 @@ tmp_create() {
|
|||||||
local tfile="${TMPPREFIX}${RANDOM}"
|
local tfile="${TMPPREFIX}${RANDOM}"
|
||||||
touch "$tfile"
|
touch "$tfile"
|
||||||
[[ $? = 0 ]] || {
|
[[ $? = 0 ]] || {
|
||||||
fatal "Fatal error creating a temporary file: $tfile"
|
fatal "Fatal error creating a temporary file: ::1 temp file::" $tfile
|
||||||
return 1 }
|
return 1 }
|
||||||
chown "$_uid":"$_gid" "$tfile"
|
chown "$_uid":"$_gid" "$tfile"
|
||||||
chmod 0600 "$tfile"
|
chmod 0600 "$tfile"
|
||||||
[[ $? = 0 ]] || {
|
[[ $? = 0 ]] || {
|
||||||
fatal "Fatal error setting permissions on temporary file: $tfile"
|
fatal "Fatal error setting permissions on temporary file: ::1 temp file::" $tfile
|
||||||
return 1 }
|
return 1 }
|
||||||
_verbose "created tempfile: ::1 temp file::" $tfile
|
_verbose "Created tempfile: ::1 temp file::" $tfile
|
||||||
tomb_tempfiles+=($tfile)
|
tomb_tempfiles+=($tfile)
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
@ -672,7 +672,7 @@ load_key() {
|
|||||||
tomb_key_file=stdin
|
tomb_key_file=stdin
|
||||||
tomb_key=`cat`
|
tomb_key=`cat`
|
||||||
else
|
else
|
||||||
_verbose "load_key argument: $keyopt"
|
_verbose "load_key argument: ::1 opt::" $keyopt
|
||||||
# take key from a file
|
# take key from a file
|
||||||
tomb_key_file="$keyopt"
|
tomb_key_file="$keyopt"
|
||||||
{ test -r "${tomb_key_file}" } || {
|
{ test -r "${tomb_key_file}" } || {
|
||||||
@ -745,7 +745,7 @@ get_lukskey() {
|
|||||||
|
|
||||||
# key is KDF encoded
|
# key is KDF encoded
|
||||||
if [[ $firstline =~ '^_KDF_' ]]; then
|
if [[ $firstline =~ '^_KDF_' ]]; then
|
||||||
_verbose "KDF: `cut -d_ -f 3 <<<$firstline`"
|
_verbose "KDF: ::1 kdf::" $(cut -d_ -f 3 <<<$firstline)
|
||||||
case `cut -d_ -f 3 <<<$firstline` in
|
case `cut -d_ -f 3 <<<$firstline` in
|
||||||
pbkdf2sha1)
|
pbkdf2sha1)
|
||||||
pbkdf2_param=`cut -d_ -f 4- <<<$firstline | tr '_' ' '`
|
pbkdf2_param=`cut -d_ -f 4- <<<$firstline | tr '_' ' '`
|
||||||
@ -1444,11 +1444,11 @@ change_tomb_key() {
|
|||||||
_failure "Aborting operations: error loading new key from -k" }
|
_failure "Aborting operations: error loading new key from -k" }
|
||||||
new_key="$tomb_key"
|
new_key="$tomb_key"
|
||||||
new_key_file="$tomb_key_file"
|
new_key_file="$tomb_key_file"
|
||||||
_message "New key: $new_key_file"
|
_message "New key: ::1 key::" $new_key_file
|
||||||
|
|
||||||
if option_is_set --tomb-pwd; then
|
if option_is_set --tomb-pwd; then
|
||||||
tomb_new_pwd="`option_value --tomb-pwd`"
|
tomb_new_pwd="`option_value --tomb-pwd`"
|
||||||
_verbose "tomb-pwd = $tomb_new_pwd"
|
_verbose "tomb-pwd = ::1 tomb pass::" $tomb_new_pwd
|
||||||
ask_key_password "$tomb_new_pwd"
|
ask_key_password "$tomb_new_pwd"
|
||||||
else
|
else
|
||||||
ask_key_password
|
ask_key_password
|
||||||
@ -1482,7 +1482,7 @@ change_tomb_key() {
|
|||||||
|
|
||||||
# backward compatibility
|
# backward compatibility
|
||||||
create_tomb() {
|
create_tomb() {
|
||||||
_verbose "create_tomb(): ${=@} ${=OLDARGS}"
|
_verbose "create_tomb(): ::1:: ::2::" ${=@} ${=OLDARGS}
|
||||||
[[ "$1" = "" ]] && {
|
[[ "$1" = "" ]] && {
|
||||||
_warning "No tomb name specified for creation."
|
_warning "No tomb name specified for creation."
|
||||||
return 1 }
|
return 1 }
|
||||||
@ -2056,7 +2056,7 @@ search_tombs() {
|
|||||||
# use mlocate to search hits on filenames
|
# use mlocate to search hits on filenames
|
||||||
_message "Searching filenames in tomb ::1 tomb name::" $tombname
|
_message "Searching filenames in tomb ::1 tomb name::" $tombname
|
||||||
locate -d ${tombmount}/.updatedb -e -i "${(f)@}"
|
locate -d ${tombmount}/.updatedb -e -i "${(f)@}"
|
||||||
_message "Matches found: `locate -d ${tombmount}/.updatedb -e -i -c ${(f)@}`"
|
_message "Matches found: ::1 matches::" $(locate -d ${tombmount}/.updatedb -e -i -c ${(f)@})
|
||||||
|
|
||||||
# use swish-e to search over contents
|
# use swish-e to search over contents
|
||||||
{ test $SWISH = 1 } && { test -r $tombmount/.swish } && {
|
{ test $SWISH = 1 } && { test -r $tombmount/.swish } && {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user