summaryrefslogtreecommitdiffstats
path: root/remote
diff options
context:
space:
mode:
authorJonathan Bauer2014-05-08 14:52:02 +0200
committerJonathan Bauer2014-05-08 14:52:02 +0200
commit7c2da2fb34ec68b36f4399a51866ffeeffc4c253 (patch)
tree121aed5d93bf4344d0404418c2f4dccee280589b /remote
parentMerge branch 'master' of git.openslx.org:openslx-ng/tm-scripts (diff)
downloadtm-scripts-7c2da2fb34ec68b36f4399a51866ffeeffc4c253.tar.gz
tm-scripts-7c2da2fb34ec68b36f4399a51866ffeeffc4c253.tar.xz
tm-scripts-7c2da2fb34ec68b36f4399a51866ffeeffc4c253.zip
[one-time-fix] first check if xfce4 is installed before installing greybird theme
Diffstat (limited to 'remote')
-rwxr-xr-xremote/onetime-fixes/install-xfce4-greybird-theme6
1 files changed, 6 insertions, 0 deletions
diff --git a/remote/onetime-fixes/install-xfce4-greybird-theme b/remote/onetime-fixes/install-xfce4-greybird-theme
index fd9a0819..6c1251a3 100755
--- a/remote/onetime-fixes/install-xfce4-greybird-theme
+++ b/remote/onetime-fixes/install-xfce4-greybird-theme
@@ -1,5 +1,11 @@
#!/bin/sh
+if ! which startxfce4 ; then
+ # xfce4 not installed, TODO install?
+ echo "Could not find 'startxfce4'. Is it installed?"
+ exit 1
+fi
+
# first download the greybird theme
if wget https://github.com/shimmerproject/Greybird/tarball/master -O /tmp/greybird.tgz ; then