File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -60,16 +60,23 @@ main() {
60
60
echo " Pushing changes to cdrci/homebrew-core fork on GitHub"
61
61
# Source: https://serverfault.com/a/912788
62
62
# shellcheck disable=SC2016,SC2028
63
- echo ' #!/bin/sh\nexec echo "$HOMEBREW_GITHUB_API_TOKEN"' > " $HOME " /.git-askpass.sh
63
+ echo ' #!/bin/sh\nexec echo "$HOMEBREW_GITHUB_API_TOKEN"' > " $HOME " /git-askpass.sh
64
+
65
+ # Make sure the git-askpass.sh file creation is successful
66
+ if [[ $( file_exists " git-askpass.sh" ) -eq 1 ]]; then
67
+ echo " git-askpass.sh not found in $HOME ."
68
+ ls -la " $HOME "
69
+ exit 1
70
+ fi
64
71
65
72
# TODO@jsjoeio - check that git-askpass.sh was created
66
73
# Ensure it's executable since we just created it
67
- chmod +x " $HOME /. git-askpass.sh"
74
+ chmod +x " $HOME /git-askpass.sh"
68
75
69
76
# TODO@jsjoeio - check that git-askpass.sh has executable permissions
70
77
# GIT_ASKPASS lets us use the password when pushing without revealing it in the process list
71
78
# See: https://serverfault.com/a/912788
72
- GIT_ASKPASS=
" $HOME /. git-askpass.sh" git push https://
[email protected] /cdr-oss/homebrew-core.git --all
79
+ GIT_ASKPASS=
" $HOME /git-askpass.sh" git push https://
[email protected] /cdr-oss/homebrew-core.git --all
73
80
74
81
# Find the docs for bump-formula-pr here
75
82
# https://github.com/Homebrew/brew/blob/master/Library/Homebrew/dev-cmd/bump-formula-pr.rb#L18
You can’t perform that action at this time.
0 commit comments