Fix qutebrowser entrypoint location

This commit is contained in:
Marty Oehme 2020-01-31 12:33:58 +01:00
parent 17bca81232
commit 0f3b9667b6
1 changed files with 6 additions and 6 deletions

View File

@ -7,12 +7,6 @@ readonly package="$2"
readonly theme="$3"
readonly permanent="$4"
# Safe sourcing: https://stackoverflow.com/a/12694189
DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi
# shellcheck source=utilities.sh
. "$DIR/utilities.sh"
## Main Entrypoint
#
# Finds the right theme template file and starts theme
@ -88,6 +82,12 @@ include() {
# Makes sure the processor is called for the correct
# base16 package, or refuses to run if it is not.
if printf '%s\n' "${dependency[@]}" | grep -q -P "^$package$"; then
# Safe sourcing: https://stackoverflow.com/a/12694189
DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi
# shellcheck source=utilities.sh
. "$DIR/utilities.sh"
main
else
dbg_msg $app "error" "Processor does not work for package $package"