mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-05 12:57:56 +00:00
small fix to key path
This commit is contained in:
parent
9c018fb04d
commit
44c08f73f2
14
src/tomb
14
src/tomb
@ -85,11 +85,6 @@ act ""
|
|||||||
func "invoked with args \"$*\" "
|
func "invoked with args \"$*\" "
|
||||||
func "running on `date`"
|
func "running on `date`"
|
||||||
|
|
||||||
id | grep root > /dev/null
|
|
||||||
if [ $? != 0 ]; then
|
|
||||||
error "This program must be run as root to produce results"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
OPTS=`getopt -o hvs:k: -n 'tomb' -- "$@"`
|
OPTS=`getopt -o hvs:k: -n 'tomb' -- "$@"`
|
||||||
|
|
||||||
@ -102,7 +97,7 @@ while true; do
|
|||||||
act "-h print this help"
|
act "-h print this help"
|
||||||
act "-v print out the version information for this tool"
|
act "-v print out the version information for this tool"
|
||||||
act "-s size of the storage file when creating one (in MBytes)"
|
act "-s size of the storage file when creating one (in MBytes)"
|
||||||
act "-k path key to be used for decryption (defaults in ~/.tomb)"
|
act "-k path to the key to use for decryption"
|
||||||
act ""
|
act ""
|
||||||
notice "Commands:"
|
notice "Commands:"
|
||||||
act "create create a new encrypted storage FILE and keys"
|
act "create create a new encrypted storage FILE and keys"
|
||||||
@ -126,11 +121,18 @@ BEGIN { license=0 }
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
if [ -z $CMD ]; then
|
if [ -z $CMD ]; then
|
||||||
error "first argument missing, use -h for help"
|
error "first argument missing, use -h for help"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
id | grep root > /dev/null
|
||||||
|
if [ $? != 0 ]; then
|
||||||
|
error "This program must be run as root to produce results"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
func "command: $CMD for file $FILE"
|
func "command: $CMD for file $FILE"
|
||||||
|
|
||||||
tombdir=${HOME}/.tomb
|
tombdir=${HOME}/.tomb
|
||||||
|
Loading…
Reference in New Issue
Block a user