From 06a4206d9b51af8ddf7c17545417e20e775e5935 Mon Sep 17 00:00:00 2001 From: Venkat Date: Wed, 20 Nov 2024 14:30:33 +0000 Subject: [PATCH] fix: newline issue with create-ghcr-regcred --- .devcontainer/tools/create-ghcr-regcred.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.devcontainer/tools/create-ghcr-regcred.sh b/.devcontainer/tools/create-ghcr-regcred.sh index 3165eae..a1f1c50 100644 --- a/.devcontainer/tools/create-ghcr-regcred.sh +++ b/.devcontainer/tools/create-ghcr-regcred.sh @@ -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\"}}}" \ No newline at end of file +echo -n "{\"auths\":{\"ghcr.io\":{\"auth\":\"$b64_enc_regcred\"}}}"