Skip to content

Commit f5553e8

Browse files
author
Charlotte D
committed
fix: made the installation file work on freebsd
Fixes #713
1 parent 8083a96 commit f5553e8

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

scripts/utils.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
do_install() {
44
local GTKDIR GTK320DIR GTKVER INSTALL_DIR
@@ -12,23 +12,24 @@ do_install() {
1212

1313
cp index.theme "${INSTALL_DIR}"
1414

15-
cp -rt "${INSTALL_DIR}" \
16-
assets gtk-2.0 metacity-1 openbox-3 xfce-notify-4.0 xfwm4 unity
15+
cp -r assets gtk-2.0 metacity-1 openbox-3 xfce-notify-4.0 xfwm4 unity \
16+
"${INSTALL_DIR}"/
1717

1818
for _DIR in "${GTKDIR}" "${GTK320DIR}"
1919
do
2020
GTKVER="${_DIR##*/}"
2121

2222
mkdir -p "${_DIR}"
2323

24-
cp -t "${_DIR}" \
24+
cp \
2525
"${GTKVER}/gtk.css" \
2626
"${GTKVER}/gtk-dark.css" \
2727
"${GTKVER}/gtk.gresource" \
28-
"${GTKVER}/thumbnail.png"
28+
"${GTKVER}/thumbnail.png" \
29+
"${_DIR}"
2930

3031
cd "${_DIR}"
31-
ln -srf ../assets assets
32+
ln -sf ../assets assets
3233
cd -
3334
done
3435
}

0 commit comments

Comments
 (0)