summaryrefslogtreecommitdiff
path: root/make-colors-themes
diff options
context:
space:
mode:
authorKylie McClain <somasissounds@gmail.com>2015-01-19 02:50:23 -0500
committerKylie McClain <somasissounds@gmail.com>2015-01-19 02:50:23 -0500
commit8f4f13237d3ca128ad0db6dbac3dbf38ba8a138a (patch)
tree063e0509e01f9d2025c6e9d30dca8cdc652a2268 /make-colors-themes
parent4041c31a58eba7d5e5983bad2effaafa3cd1f3aa (diff)
make sure the directory we are copying to exists first
Diffstat (limited to 'make-colors-themes')
-rwxr-xr-xmake-colors-themes2
1 files changed, 2 insertions, 0 deletions
diff --git a/make-colors-themes b/make-colors-themes
index f104307..a957b6e 100755
--- a/make-colors-themes
+++ b/make-colors-themes
@@ -46,6 +46,7 @@ install_theme() {
cp -r "Zukitwo-$color/" "$HOME/.themes"
else
echo " system-wide..."
+ mkdir -p "$DESTDIR/usr/share/themes/"
cp -r "$PWD/Zukitwo-$color/" "$DESTDIR/usr/share/themes/"
fi
else
@@ -59,6 +60,7 @@ install_theme() {
cp -r Zukitwo-*-Openbox/ "$HOME/.themes"
else
echo "Installing Xfwm themes system-wide..."
+ mkdir -p "$DESTDIR/usr/share/themes/"
cp -r "$PWD"/Zukitwo-*-Xfwm/ "$DESTDIR/usr/share/themes/"
echo "Installing Openbox themes system-wide..."
cp -r "$PWD"/Zukitwo-*-Openbox/ "$DESTDIR/usr/share/themes/"