Update stdout messages to provide better information.

pull/2/head
Darrell Anderson 13 years ago
parent 092b8253e8
commit 5d3183a814

@ -109,7 +109,7 @@ if [ -x $BIN_DIR/tde-config ]; then
export TDEDIR=${BIN_DIR%/bin} export TDEDIR=${BIN_DIR%/bin}
echo "Trinity Desktop Environment base directory is $TDEDIR" 1>&2 echo "Trinity Desktop Environment base directory is $TDEDIR" 1>&2
else else
echo "Unable to determine TDE base directory." echo "Unable to determine the TDE bin directory, where this script should be installed."
echo "This script should be installed in the same directory." echo "This script should be installed in the same directory."
echo "Exiting." echo "Exiting."
exit 1 exit 1

@ -10,6 +10,9 @@
# The nominal validation checks in this script provide some notice # The nominal validation checks in this script provide some notice
# but no direct remedy. # but no direct remedy.
# TODO: How to update profile directories not named $HOME/.trinity and $TDEHOME
# is not yet declared when running this script.
Wait_For_Response () { Wait_For_Response () {
unset response unset response
# -r Backslash does not act as an escape character. # -r Backslash does not act as an escape character.
@ -123,7 +126,7 @@ BIN_DIR="`dirname \`readlink -f $0\``"
if [ -x $BIN_DIR/tde-config ]; then if [ -x $BIN_DIR/tde-config ]; then
TDEDIR=${BIN_DIR%/bin} TDEDIR=${BIN_DIR%/bin}
else else
MESSAGE="Unable to determine the TDE bin directory, where this script should be located." MESSAGE="Unable to determine the TDE bin directory, where this script should be installed."
# Are we in X? Display an X dialog explaining breakage. # Are we in X? Display an X dialog explaining breakage.
if [ "$USER_DIR" = "$HOME" ] && [ "$DISPLAY" != "" ]; then if [ "$USER_DIR" = "$HOME" ] && [ "$DISPLAY" != "" ]; then
printf "%b" "$MESSAGE" | xmessage -center -file - -buttons Continue,Quit > /dev/null 2>/dev/null printf "%b" "$MESSAGE" | xmessage -center -file - -buttons Continue,Quit > /dev/null 2>/dev/null

@ -32,7 +32,7 @@ if [ -x $BIN_DIR/tde-config ]; then
export TDEDIR=${BIN_DIR%/bin} export TDEDIR=${BIN_DIR%/bin}
echo "[starttde] TDE base directory is $TDEDIR" 1>&2 echo "[starttde] TDE base directory is $TDEDIR" 1>&2
else else
echo "[starttde] Unable to determine TDE base directory." echo "[starttde] Unable to determine the TDE bin directory, where this script should be installed."
echo "[starttde] This script should be installed in the same directory." echo "[starttde] This script should be installed in the same directory."
echo "[starttde] Exiting." echo "[starttde] Exiting."
exit 1 exit 1

Loading…
Cancel
Save