aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKylie McClain <somasissounds@gmail.com>2015-02-15 23:47:12 -0500
committerKylie McClain <somasissounds@gmail.com>2015-02-15 23:47:12 -0500
commita0818dd3e5faa91d1a61d7d00ef548e64ce9e203 (patch)
tree6db22100e79efaefe6c4c90c3c6481e4f430b52d
parentf082acf3d4f97997938deaf5c7ff151d0fe72e33 (diff)
make-colors-themes: use $DESTDIR consistently
-rwxr-xr-xmake-colors-themes12
1 files changed, 6 insertions, 6 deletions
diff --git a/make-colors-themes b/make-colors-themes
index 8276637..6ff723a 100755
--- a/make-colors-themes
+++ b/make-colors-themes
@@ -50,7 +50,7 @@ install_theme() {
printf "Installing \"Shiki-$color\""
if [[ "$user_install" ]];then
printf "...\n"
- cp -r "Shiki-$color/" "$HOME/.themes"
+ cp -r "Shiki-$color/" "$DESTDIR$HOME/.themes"
else
echo " system-wide..."
mkdir -p "$DESTDIR/usr/share/themes/"
@@ -62,11 +62,11 @@ install_theme() {
done
if [[ "$user_install" ]];then
echo "Installing Xfwm themes..."
- cp -vr Shiki-*-Xfwm/ "$HOME/.themes"
+ cp -vr Shiki-*-Xfwm/ "$DESTDIR$HOME/.themes"
echo "Installing Openbox themes..."
- cp -vr Shiki-*-Openbox/ "$HOME/.themes"
+ cp -vr Shiki-*-Openbox/ "$DESTDIR$HOME/.themes"
echo "Installing Plank themes..."
- install_plank_theme "$HOME/.local/share/plank/themes/" ./plank/*
+ install_plank_theme "$DESTDIR$HOME/.local/share/plank/themes/" ./plank/*
else
echo "Installing Xfwm themes system-wide..."
mkdir -p "$DESTDIR/usr/share/themes/"
@@ -74,7 +74,7 @@ install_theme() {
echo "Installing Openbox themes system-wide..."
cp -vr "$PWD"/Shiki-*-Openbox/ "$DESTDIR/usr/share/themes/"
echo "Installing Plank themes system-wide..."
- install_plank_theme "/usr/share/plank/themes/" ./plank/*
+ install_plank_theme "$DESTDIR/usr/share/plank/themes/" ./plank/*
fi
printf '\n'
}
@@ -83,7 +83,7 @@ uninstall_theme() {
printf "Uninstalling..."
for color in ${colors[@]};do
printf " \"Shiki-$color\""
- rm -rf "$HOME/.themes/Shiki-$color/" "$DESTDIR/usr/share/themes/Shiki-$color/" 2>/dev/null >/dev/null
+ rm -rf "$DESTDIR$HOME/.themes/Shiki-$color/" "$DESTDIR/usr/share/themes/Shiki-$color/"
done
printf '\n\n\n'
}