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 # no argument but on graphical display: creation dialog
if [ -z $DISPLAY ]; then if [ "$1" != "wizard" ]; then
echo "[!] tomb-open is a wrapper for the command 'tomb'" if [ -z $DISPLAY ]; then
"${TOMBEXEC}" -h echo "[!] tomb-open is a wrapper for the command 'tomb'"
exit 1 echo "[!] type 'tomb-open wizard' if you want to be guided"
"${TOMBEXEC}" -h
exit 1
fi
fi fi
# no arguments: start guided tomb creation # no arguments: start guided tomb creation