mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-29 08:14:08 +00:00
fix for #165
This commit is contained in:
parent
ba39aef673
commit
c0bd822312
8
tomb
8
tomb
@ -727,7 +727,7 @@ _ensure_dependencies() {
|
|||||||
PINENTRY=(`awk '
|
PINENTRY=(`awk '
|
||||||
/^pinentry-program/ { for(c=2;c<=NF;c++) printf("%s ", $c) }
|
/^pinentry-program/ { for(c=2;c<=NF;c++) printf("%s ", $c) }
|
||||||
' $HOME/.gnupg/gpg-agent.conf`)
|
' $HOME/.gnupg/gpg-agent.conf`)
|
||||||
_message "gpg-agent choice of pinentry: ::1 pinentry::" "${PINENTRY}" }
|
_verbose "gpg-agent choice of pinentry: ::1 pinentry::" "${PINENTRY}" }
|
||||||
|
|
||||||
# Check for filesystem creation programs
|
# Check for filesystem creation programs
|
||||||
command -v mkfs.ext4 1>/dev/null 2>/dev/null && MKFS=(mkfs.ext4 -q -F -j -L)
|
command -v mkfs.ext4 1>/dev/null 2>/dev/null && MKFS=(mkfs.ext4 -q -F -j -L)
|
||||||
@ -1318,7 +1318,7 @@ dig_tomb() {
|
|||||||
|
|
||||||
[[ -e $TOMBPATH ]] && {
|
[[ -e $TOMBPATH ]] && {
|
||||||
_warning "A tomb exists already. I'm not digging here:"
|
_warning "A tomb exists already. I'm not digging here:"
|
||||||
_warning " $(ls -lh $TOMBPATH)"
|
ls -lh $TOMBPATH
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1335,7 +1335,7 @@ dig_tomb() {
|
|||||||
${=DD} if=/dev/urandom bs=1048576 count=$tombsize of=$TOMBPATH
|
${=DD} if=/dev/urandom bs=1048576 count=$tombsize of=$TOMBPATH
|
||||||
|
|
||||||
[[ $? == 0 && -e $TOMBPATH ]] && {
|
[[ $? == 0 && -e $TOMBPATH ]] && {
|
||||||
_message " $(ls -lh $TOMBPATH)"
|
ls -lh $TOMBPATH
|
||||||
} || {
|
} || {
|
||||||
_warning "Error creating the tomb ::1 tomb path::" $TOMBPATH
|
_warning "Error creating the tomb ::1 tomb path::" $TOMBPATH
|
||||||
_failure "Operation aborted."
|
_failure "Operation aborted."
|
||||||
@ -1372,7 +1372,7 @@ forge_key() {
|
|||||||
# Do not overwrite any files accidentally
|
# Do not overwrite any files accidentally
|
||||||
[[ -r "$destkey" ]] && {
|
[[ -r "$destkey" ]] && {
|
||||||
_warning "Forging this key would overwrite an existing file. Operation aborted."
|
_warning "Forging this key would overwrite an existing file. Operation aborted."
|
||||||
_failure "`ls -lh $destkey`" }
|
ls -lh $destkey
|
||||||
|
|
||||||
# Update algorithm if it was passed on the command line with -o
|
# Update algorithm if it was passed on the command line with -o
|
||||||
{ option_is_set -o } && { algopt="$(option_value -o)" }
|
{ option_is_set -o } && { algopt="$(option_value -o)" }
|
||||||
|
Loading…
Reference in New Issue
Block a user