File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,14 @@ set -x
12
12
usage () {
13
13
set +x
14
14
printf " %s\n\n" " $* "
15
- printf " usage: %s [-w]\n" ${0##*/ }
16
- printf " \t%s\t%s\ n" " "
17
- printf " \t%s\t%s\ n" " $* "
15
+ printf " usage: %s [-w]\n" " ${0##*/ } "
16
+ printf " \t%s\n" " "
17
+ printf " \t%s\n" " $* "
18
18
exit 1
19
19
}
20
20
21
21
TEST_ARGS=
22
- while getopts hg:iw flag
22
+ while getopts h:w flag
23
23
do
24
24
case $flag in
25
25
h) usage " " ;;
@@ -36,7 +36,7 @@ GITHUB_REPOSITORY_OWNER=$USER
36
36
CURRENT_BRANCH_NAME=$( git-branch --show-current)
37
37
# If the current branch name contains the GitHub username of the owner of the upstream repo,
38
38
# assume the intention is to prepare and push a pull request.
39
- if [ $( expr $CURRENT_BRANCH_NAME : " .*$UPSTREAM_OWNER " ) != 0 ]
39
+ if [ $( expr " $CURRENT_BRANCH_NAME " : " .*$UPSTREAM_OWNER " ) != 0 ]
40
40
then
41
41
GITHUB_REPOSITORY_OWNER=$UPSTREAM_OWNER
42
42
fi
You can’t perform that action at this time.
0 commit comments