Skip to content

Commit

Permalink
fixes for upload / download scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
stoerr committed Jun 4, 2024
1 parent 2581a69 commit 8b63bc9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tools/bin/downloadJcrDirectory.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ if [ -z "$CPM_ADMINPASSWD" ]; then
fi

jcrpath="$1"
jcrpath="${jcrpath#src/main/content/jcr_root/}"
jcrpath="${jcrpath#src/main/resources/root/}"
jcrpath="${jcrpath#jcr_root/}"
jcrpath="${jcrpath#root/}"
url="${CPM_PROTOCOL}://${CPM_HOST}:${CPM_PORT}/bin/cpm/nodes/source.zip/${jcrpath}"
Expand Down
4 changes: 3 additions & 1 deletion tools/bin/updateJcrDirectory.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ while [ $(basename "$rootdir") != "jcr_root" -a $(basename "$rootdir") != "root"
done
rootdir=$(dirname $rootdir)

jcrpath="${path#jcr_root/}"
jcrpath="${path#src/main/content/jcr_root/}"
jcrpath="${jcrpath#src/main/resources/root/}"
jcrpath="${jcrpath#jcr_root/}"
jcrpath="${jcrpath#root/}"
url="$CPM_PROTOCOL://$CPM_HOST:$CPM_PORT/bin/cpm/nodes/sourceupload.zip/${jcrpath}"

Expand Down

0 comments on commit 8b63bc9

Please sign in to comment.