Skip to content

Commit

Permalink
cannot address namespace prefixed paths such as cq:dialog #5
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkli committed Dec 5, 2015
1 parent 0a1b794 commit c3c0a0f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions repo/repo
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,18 @@ function filesystem_to_jcr() {
local filter=$1
# remove .content.xml from the end
filter=${filter%%/.content.xml}
# remove any .xml from the end
filter=${filter%%.xml}
# rename known namespaces prefixes from _ns_* to ns:*
filter=${filter//_jcr_/jcr:}
filter=${filter//_rep_/rep:}
filter=${filter//_oak_/oak:}
filter=${filter//_sling_/sling:}
filter=${filter//_granite_/granite:}
filter=${filter//_cq_/cq:}
filter=${filter//_dam_/dam:}
filter=${filter//_exif_/exif:}
filter=${filter//_social_/social:}
echo $filter
}

Expand Down

0 comments on commit c3c0a0f

Please # to comment.