Skip to content

Commit

Permalink
fix /usr/share installation
Browse files Browse the repository at this point in the history
  • Loading branch information
nyxnor committed Feb 19, 2022
1 parent 3d71915 commit 159eba5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ onionjuggler_repo="${ONIONJUGGLER_GIT_ORIGIN:-"https://github.com/nyxnor/onionju
topdir="$(git rev-parse --show-toplevel)"
me="${0##*/}"

onionjuggler_defaults="/usr/share/onionjuggler/defaults.sh"
onionjuggler_defaults="${topdir}/usr/share/onionjuggler/defaults.sh"
[ -e "${onionjuggler_defaults}" ] || { printf '%s\n' "${onionjuggler_defaults} does not exist"; exit 1; }
[ -f "${onionjuggler_defaults}" ] || { printf '%s\n' "${onionjuggler_defaults} is not a regular file"; exit 1; }
[ -r "${onionjuggler_defaults}" ] || { printf '%s\n' "${onionjuggler_defaults} can not be read"; exit 1; }
Expand Down Expand Up @@ -305,7 +305,8 @@ case "${command}" in
else
cp "${topdir}"/usr/bin/* "${bin_dir}"
fi

mkdir /usr/share/onionjuggler
cp "${topdir}"/usr/share/onionjuggler/* /usr/share/onionjuggler/
[ ! -d "${conf_dir}/onionjuggler" ] && mkdir -p "${conf_dir}/conf.d"
cp "${topdir}"/etc/onionjuggler/dialogrc "${conf_dir}"
## Source of distro names: neofetch -> https://github.com/dylanaraps/neofetch
Expand Down

0 comments on commit 159eba5

Please sign in to comment.