From 4e42be0ab50978dd47c2ecc081ff96afa232070a Mon Sep 17 00:00:00 2001 From: kebernet Date: Sun, 21 Apr 2024 10:44:06 -0400 Subject: [PATCH] Working on homebrew --- bin/deploy-homebrew.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/deploy-homebrew.sh b/bin/deploy-homebrew.sh index eac137b..a1735e2 100755 --- a/bin/deploy-homebrew.sh +++ b/bin/deploy-homebrew.sh @@ -11,12 +11,13 @@ git clone --single-branch --branch "$DESTINATION_BRANCH" "https://$API_TOKEN_GIT ls -la "$CLONE_DIRECTORY" mkdir -p "$CLONE_DIRECTORY/$DESTINATION_DIRECTORY" +cd .. cp -rvf $SOURCE_FILES "$CLONE_DIRECTORY/$DESTINATION_DIRECTORY" -cd $CLONE_DIRECTORY +cd target/$CLONE_DIRECTORY git add . git status git diff-index --quiet HEAD || git commit --message "$COMMIT_MESSAGE" - +git config --unset-all http.https://github.com/.extraheader git push origin --set-upstream "$DESTINATION_BRANCH" \ No newline at end of file