diff options
| author | Jonathan Bauer | 2014-06-16 15:45:46 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2014-06-16 15:45:46 +0200 |
| commit | de91718fff7d0dba4c635d0fbe9f4c57c567988d (patch) | |
| tree | 837dd66a04b235823848f0e96102d0134b07037c | |
| parent | [kernel.inc] fix bad cd's. (diff) | |
| download | tm-scripts-de91718fff7d0dba4c635d0fbe9f4c57c567988d.tar.gz tm-scripts-de91718fff7d0dba4c635d0fbe9f4c57c567988d.tar.xz tm-scripts-de91718fff7d0dba4c635d0fbe9f4c57c567988d.zip | |
[onetime-fix] abort if /usr/share/themes/Greybird already exists.
| -rwxr-xr-x | remote/onetime-fixes/install-xfce4-greybird-theme | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/remote/onetime-fixes/install-xfce4-greybird-theme b/remote/onetime-fixes/install-xfce4-greybird-theme index 6c1251a3..0e2bc4ba 100755 --- a/remote/onetime-fixes/install-xfce4-greybird-theme +++ b/remote/onetime-fixes/install-xfce4-greybird-theme @@ -15,7 +15,12 @@ if wget https://github.com/shimmerproject/Greybird/tarball/master -O /tmp/greybi cd /usr/share/themes tar xfz /tmp/greybird.tgz if [ -d "$GREYBIRD" ]; then - mv "$GREYBIRD" Greybird + if [ ! -d Greybird ]; then + mv "$GREYBIRD" Greybird + else + echo "/usr/share/themes/Greybird already exists! Is it good enough?" + exit 1 + fi else echo "Error mv'ing $GREYBIRD to Greybird" exit 1 |
