File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ function exec_or_dry_run() {
26
26
PUSH_CHANGES=true
27
27
28
28
notesFile=" "
29
- while getopts ' dhb: -:' opt; do
29
+ while getopts ' dh -:' opt; do
30
30
if [ " $opt " = " -" ]; then
31
31
# long option: reformulate opt and OPTARG
32
32
# - extract long option name
@@ -54,7 +54,7 @@ while getopts 'dhb:-:' opt; do
54
54
notesFile=" $OPTARG "
55
55
echo " Using external notes-file : $notesFile "
56
56
;;
57
- \? )
57
+ * )
58
58
usage
59
59
exit 1
60
60
;;
@@ -130,7 +130,7 @@ releaseName="Hibernate ${PROJECT_NAME} ${RELEASE_VERSION}"
130
130
131
131
# determine the main body of the release notes..
132
132
notesContent=" "
133
- if [ -n $notesFile && -f $notesFile ]; then
133
+ if [ -n " $notesFile " -a -f " $notesFile " ]; then
134
134
# a notes file was passed to the script - read its contents as the main content
135
135
notesContent=$( cat " $notesFile " )
136
136
else
You can’t perform that action at this time.
0 commit comments