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