Skip to content

Commit

Permalink
Merge pull request #24 from AlexV525/AlexV525-patch-1
Browse files Browse the repository at this point in the history
Make new pub recognize credentials
  • Loading branch information
sakebook authored Dec 31, 2021
2 parents a1af84a + 7544a68 commit 27a44d2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ check_credentials() {

copy_credential() {
echo "Copy credentials"
mkdir -p ~/.pub-cache
cat <<EOF > ~/.pub-cache/credentials.json
mkdir -p ~/Library/Application\ Support/dart
cat <<EOF > ~/Library/Application\ Support/dart/pub-credentials.json
$INPUT_CREDENTIAL
EOF
mkdir -p ~/.pub-cache
ln -s ~/Library/Application\ Support/dart/pub-credentials.json credentials.json
echo "OK"
}

Expand Down

0 comments on commit 27a44d2

Please sign in to comment.