Skip to content

Commit

Permalink
Merge pull request #48 from davidchambers/shellcheck
Browse files Browse the repository at this point in the history
shellcheck@0.4.7
  • Loading branch information
davidchambers committed Jan 5, 2018
2 parents ddbc229 + d8aee80 commit f7702d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Makefile
Expand Up @@ -4,6 +4,7 @@ XYZ = ./xyz --repo git@github.com:davidchambers/xyz.git

.PHONY: lint
lint:
$(SHELLCHECK) --version
$(SHELLCHECK) -- xyz


Expand Down
4 changes: 2 additions & 2 deletions xyz
Expand Up @@ -66,7 +66,7 @@ Options:
"

abort() {
printf "%s\n" "$1" >&2
printf '%s\n' "$1" >&2
exit 1
}

Expand Down Expand Up @@ -102,7 +102,7 @@ inc() {
for (( idx = ${#xs[@]} - 1 ; idx > 0 ; idx -= 1 )) ; do
pattern="^($number)$"
if [[ ${xs[idx]} =~ $pattern ]] ; then
parts=(${xs[@]})
parts=("${xs[@]}")
(( parts[idx] += 1 ))
break
fi
Expand Down

0 comments on commit f7702d6

Please sign in to comment.