tmake it possible to call tomb-open wizard when no X screen is present - tomb - the crypto undertaker
HTML git clone git://parazyd.org/tomb.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 41738e762671b1114fe9a1e40bd0aae924801827
DIR parent 16f04128175cde1ab9c9c0b20f6db34078e291e0
HTML Author: Jaromil <jaromil@dyne.org>
Date: Tue, 24 May 2011 11:17:11 +0200
make it possible to call tomb-open wizard when no X screen is present
Diffstat:
M src/tomb-open | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
---
DIR diff --git a/src/tomb-open b/src/tomb-open
t@@ -243,10 +243,13 @@ fi
# no argument but on graphical display: creation dialog
-if [ -z $DISPLAY ]; then
- echo "[!] tomb-open is a wrapper for the command 'tomb'"
- "${TOMBEXEC}" -h
- exit 1
+if [ "$1" != "wizard" ]; then
+ if [ -z $DISPLAY ]; then
+ echo "[!] tomb-open is a wrapper for the command 'tomb'"
+ echo "[!] type 'tomb-open wizard' if you want to be guided"
+ "${TOMBEXEC}" -h
+ exit 1
+ fi
fi
# no arguments: start guided tomb creation