make it possible to call tomb-open wizard when no X screen is present

This commit is contained in:
Jaromil 2011-05-24 11:17:11 +02:00
parent 16f0412817
commit 41738e7626

View File

@ -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