Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #156 from sudeshrshetty/didcomm-tunnel
Browse files Browse the repository at this point in the history
chore: invalid character in stake holder file name
  • Loading branch information
sudeshrshetty authored May 6, 2020
2 parents 8f09632 + 6b958a3 commit 270813a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/generate_test_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ function convert_file_linux() {
# then embed in a dummy jws and write to the config folder
# $1: file name
echo "{\"payload\":\"$(cat $1 | base64 -w 0 | sed 's/+/-/g; s/\//_/g; s/=//g')\",\"signatures\":[{\"header\":{\"kid\":\"\"},\"signature\":\"\"}]}" > ../config/$1
find ../config -depth -name '*.*' -execdir bash -c 'mv -- "$1" "${1/_/:}"' bash {} \;
}

function convert_file_osx() {
# base64url encode payload: base64 -w 0 | sed 's/+/-/g; s/\//_/g'
# then embed in a dummy jws and write to the config folder
# $1: file name
echo "{\"payload\":\"$(cat $1 | base64 | sed 's/+/-/g; s/\//_/g; s/=//g')\",\"signatures\":[{\"header\":{\"kid\":\"\"},\"signature\":\"\"}]}" > ../config/$1
find ../config -depth -name '*.*' -execdir bash -c 'mv -- "$1" "${1/_/:}"' bash {} \;
}

pwd=`pwd`
Expand Down

0 comments on commit 270813a

Please sign in to comment.