mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-19 19:15:14 +00:00
Merge pull request #17 from davinerd/fix_issue3
fix issue #3 create now avoids ovewriting an existing tomb key: quits with error.
This commit is contained in:
commit
7b2fc78b19
6
src/tomb
6
src/tomb
@ -316,6 +316,12 @@ create_tomb() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -e ${tombdir}/${tombfile}.key ]; then
|
||||||
|
error "tomb key already exists. Quitting."
|
||||||
|
ls -lh ${tombdir}/${tombfile}.key
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
notice "Creating a new tomb in ${tombdir}/${tombfile}"
|
notice "Creating a new tomb in ${tombdir}/${tombfile}"
|
||||||
|
|
||||||
if [ -z $SIZE ]; then
|
if [ -z $SIZE ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user