File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -69,11 +69,16 @@ main() {
69
69
exit 1
70
70
fi
71
71
72
- # TODO@jsjoeio - check that git-askpass.sh was created
73
72
# Ensure it's executable since we just created it
74
73
chmod +x " $HOME /git-askpass.sh"
75
74
76
- # TODO@jsjoeio - check that git-askpass.sh has executable permissions
75
+ # Make sure the git-askpass.sh file is executable
76
+ if [[ $( is_executable " $HOME /git-askpass.sh" ) -eq 1 ]]; then
77
+ echo " git-askpass.sh is not executable."
78
+ ls -la " $HOME /git-askpass.sh"
79
+ exit 1
80
+ fi
81
+
77
82
# GIT_ASKPASS lets us use the password when pushing without revealing it in the process list
78
83
# See: https://serverfault.com/a/912788
79
84
GIT_ASKPASS=
" $HOME /git-askpass.sh" git push https://
[email protected] /cdr-oss/homebrew-core.git --all
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ source "$SCRIPT"
31
31
}
32
32
33
33
@test " file_exists should 0 if file exists" {
34
- run file_exists " steps-lib.bats "
34
+ run file_exists " $SCRIPT "
35
35
[ " $output " = 0 ]
36
36
}
37
37
You can’t perform that action at this time.
0 commit comments