Skip to content

Commit

Permalink
fix: newline issue with create-ghcr-regcred (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
venkatamutyala authored Nov 20, 2024
1 parent 378cb37 commit 322b59c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/tools/create-ghcr-regcred.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ if [[ -z $gh_username || -z $gh_token ]]; then
fi

set -e
b64_enc_regcred=$(echo -n "$gh_username:$gh_token" | base64)
b64_enc_regcred=$(echo -n "$gh_username:$gh_token" | base64 -w0)

echo "{\"auths\":{\"ghcr.io\":{\"auth\":\"$b64_enc_regcred\"}}}"
echo -n "{\"auths\":{\"ghcr.io\":{\"auth\":\"$b64_enc_regcred\"}}}"

0 comments on commit 322b59c

Please sign in to comment.