From 41738e762671b1114fe9a1e40bd0aae924801827 Mon Sep 17 00:00:00 2001 From: Jaromil Date: Tue, 24 May 2011 11:17:11 +0200 Subject: [PATCH] make it possible to call tomb-open wizard when no X screen is present --- src/tomb-open | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/tomb-open b/src/tomb-open index de11041..9d77a7e 100755 --- a/src/tomb-open +++ b/src/tomb-open @@ -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