diff options
author | Jesús <heckyel@hyperbola.info> | 2019-04-03 16:53:20 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-04-03 16:53:20 -0500 |
commit | 43bf912bb48dd713c497a0e167f0e0bbe749c04b (patch) | |
tree | 50e758d68b8d705ee9e1cea3157a1e2672b10885 /scripts/aplaylist.sh | |
parent | 1be19fe704ab6949937dec3f081b9f63a47b0a4a (diff) | |
download | cl-theme-43bf912bb48dd713c497a0e167f0e0bbe749c04b.tar.lz cl-theme-43bf912bb48dd713c497a0e167f0e0bbe749c04b.tar.xz cl-theme-43bf912bb48dd713c497a0e167f0e0bbe749c04b.zip |
fix double slash
Diffstat (limited to 'scripts/aplaylist.sh')
-rw-r--r-- | scripts/aplaylist.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/aplaylist.sh b/scripts/aplaylist.sh index e52bb8b..6b1d1b3 100644 --- a/scripts/aplaylist.sh +++ b/scripts/aplaylist.sh @@ -9,8 +9,9 @@ run_it() local _name="${1-aplaylist}" local _dir="${2-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}" - local _src="${_dir%scripts}/src/scss/aplaylist/${_name}.scss" # input - local _dest="${_dir%scripts}/dist/css/${_name}.css" # output + local _target="${_dir%/*}" # deleted slash + local _src="${_target%scripts}/src/scss/aplaylist/${_name}.scss" # input + local _dest="${_target%scripts}/dist/css/${_name}.css" # output local _options="${3---sourcemap=none}" # ---------------------------------------------------------------------------- @@ -34,8 +35,9 @@ run_compress() local _name="${1-aplaylist}" local _dir="${2-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}" - local _src="${_dir%scripts}/src/scss/aplaylist/${_name}.scss" # input - local _dest="${_dir%scripts}/dist/css/${_name}.min.css" # output + local _target="${_dir%/*}" # deleted slash + local _src="${_target%scripts}/src/scss/aplaylist/${_name}.scss" # input + local _dest="${_target%scripts}/dist/css/${_name}.min.css" # output local _options="${3---sourcemap=none}" # ---------------------------------------------------------------------------- |