Skip to content

Commit 97cc560

Browse files
committed
Open a given workflows file when polish-workflow
There is undefined `${file}` variable that is used as a reference to a given workflows file. But the variable is never initialized. As the result, the command just opens the editor, but not a given file. Now, this variable is replaced with `${1}` (a reference to the first input parameter).
1 parent c9cbdc0 commit 97cc560

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

libexec/git-elegant-polish-workflow

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ MESSAGE
2727

2828
default() {
2929
_error-if-empty "${1}" "Please specify a workflow file name"
30-
if test -e ${file}; then
31-
$(git config core.editor) ${file}
30+
if test -e ${1}; then
31+
$(git config core.editor) ${1}
3232
else
33-
error-text "The '${file}' file does not exist."
33+
error-text "The '${1}' file does not exist."
3434
exit 43
3535
fi
3636
}

0 commit comments

Comments
 (0)