summaryrefslogtreecommitdiffstats
path: root/starttde
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-06-25 12:50:03 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2012-06-25 12:50:03 -0500
commit2bdb858b78630de4b41f512cb12cbaaa76cc93ba (patch)
treec7043ef93270eec92908780c4db46183bf19845e /starttde
parent11f3dd1d15b41cb813fe4fcdfc57a75da7adc14a (diff)
downloadtdebase-2bdb858b78630de4b41f512cb12cbaaa76cc93ba.tar.gz
tdebase-2bdb858b78630de4b41f512cb12cbaaa76cc93ba.zip
Add file existence test before trying to run r14-xdg-update script.
Diffstat (limited to 'starttde')
-rw-r--r--starttde10
1 files changed, 8 insertions, 2 deletions
diff --git a/starttde b/starttde
index 5f2cd408..3933f8a2 100644
--- a/starttde
+++ b/starttde
@@ -255,8 +255,14 @@ if [ -d "$tdehome" ]; then
# Possibly run some R14 XDG compliance updates.
R14_UPDATED="`$TDEDIR/bin/kreadconfig --file kdeglobals --group "R14 XDG Updates" --key Updated`"
if [ "$R14_UPDATED" != "true" ]; then
- sh $TDEDIR/bin/r14-xdg-update
- if [ "$?" != "0" ]; then
+ if [ -e $TDEDIR/bin/r14-xdg-update ]; then
+ sh $TDEDIR/bin/r14-xdg-update
+ EXIT_CODE="$?"
+ else
+ echo "[starttde] $TDEDIR/bin/r14-xdg-update does not exist." 1>&2
+ echo " Unable to perform a profile update for Trinity release R14 XDG compliance."
+ fi
+ if [ "$EXIT_CODE" != "0" ]; then
exit 1
fi
fi