Skip to content

Commit ca1efb7

Browse files
authored
Fix more issues identified through shellcheck
Merge pull request #355 from a1346054/master
2 parents 4129dad + 564ed33 commit ca1efb7

File tree

4 files changed

+199
-206
lines changed

4 files changed

+199
-206
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
**What is the expected behavior?**
1111

1212

13-
**Which versions todo.sh are you using?**
13+
**Which version of todo.sh are you using?**
1414
> Run `todo.sh -V`
1515
1616

@@ -19,4 +19,3 @@
1919

2020
**Which version of bash are you using?**
2121
> Run `bash --version`
22-

GEN-VERSION-FILE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ fi
1414

1515
VN=$(expr "$VN" : v*'\(.*\)')
1616

17-
if test -r $VF
17+
if test -r "$VF"
1818
then
19-
VC=$(sed -e 's/^VERSION=//' <$VF)
19+
VC=$(sed -e 's/^VERSION=//' <"$VF")
2020
else
2121
VC=unset
2222
fi
2323
test "$VN" = "$VC" || {
2424
echo >&2 "VERSION=$VN"
25-
echo "VERSION=$VN" >$VF
25+
echo "VERSION=$VN" >"$VF"
2626
}

0 commit comments

Comments
 (0)