Skip to content

Commit

Permalink
fix(libtofs): use strip to deal with leading/trailing slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed May 28, 2019
1 parent afe0751 commit 2563a46
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions template/libtofs.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@
{%- endif %}
{%- set url = [
'- salt:/',
path_prefix_inc_ext,
files_dir,
fs_dir,
src_file,
path_prefix_inc_ext.strip('/'),
files_dir.strip('/'),
fs_dir.strip('/'),
src_file.strip('/'),
] | select | join('/') %}
{{ url | indent(indent_width, true) }}
{%- endfor %}
Expand Down

0 comments on commit 2563a46

Please sign in to comment.