fix: made the installation file work on freebsd

Fixes #713
pull/714/head
Charlotte D 2018-06-20 09:33:57 +01:00
parent 5869b68549
commit 9eafed165a
1 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
do_install() {
local GTKDIR GTK320DIR GTKVER INSTALL_DIR
@ -12,8 +12,8 @@ do_install() {
cp index.theme "${INSTALL_DIR}"
cp -rt "${INSTALL_DIR}" \
assets gtk-2.0 metacity-1 openbox-3 xfce-notify-4.0 xfwm4 unity
cp -r assets gtk-2.0 metacity-1 openbox-3 xfce-notify-4.0 xfwm4 unity \
"${INSTALL_DIR}"/
for _DIR in "${GTKDIR}" "${GTK320DIR}"
do
@ -21,14 +21,15 @@ do_install() {
mkdir -p "${_DIR}"
cp -t "${_DIR}" \
cp \
"${GTKVER}/gtk.css" \
"${GTKVER}/gtk-dark.css" \
"${GTKVER}/gtk.gresource" \
"${GTKVER}/thumbnail.png"
"${GTKVER}/thumbnail.png" \
"${_DIR}"
cd "${_DIR}"
ln -srf ../assets assets
ln -sf ../assets assets
cd -
done
}