diff options
Diffstat (limited to 'scripts/js.sh')
-rw-r--r-- | scripts/js.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/js.sh b/scripts/js.sh index 635c32b..3a2af3c 100644 --- a/scripts/js.sh +++ b/scripts/js.sh @@ -5,8 +5,9 @@ run_navbar() { local _name="${1-navbar-burger}" local _dir="${2-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}" - local _src="${_dir%scripts}/src/js/${_name}.js" # input - local _dest="${_dir%scripts}/dist/js/" # output + local _target="${_dir%/*}" # deleted slash + local _src="${_target%scripts}/src/js/${_name}.js" # input + local _dest="${_target%scripts}/dist/js/" # output if [[ -n "${_src}" ]]; then @@ -20,8 +21,9 @@ run_aplaylist() { local _name="${1-aplaylist}" local _dir="${2-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}" - local _src="${_dir%scripts}/src/js/${_name}.js" # input - local _dest="${_dir%scripts}/dist/js/" # output + local _target="${_dir%/*}" # deleted slash + local _src="${_target%scripts}/src/js/${_name}.js" # input + local _dest="${_target%scripts}/dist/js/" # output if [[ -n "${_src}" ]]; then |