Skip to content

Commit

Permalink
fix(1.0.2): 修复shellcheck的两个警告
Browse files Browse the repository at this point in the history
1. 循环时数组变量的使用问题
2. shell内置变量使用问题

refs shellckeck #SC2124 # SC2128

Signed-off-by: Tony Deng <[email protected]>
  • Loading branch information
tonydeng committed Dec 5, 2016
1 parent bc16d44 commit 8901f37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions command/git-ci
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
function init() {
LOCALE=(LANG LC_COLLATE LC_CTYPE LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME LC_ALL)
LANGUAGE="zh_CN.UTF-8"
for l in $LOCALE ; do
for l in "${LOCALE[@]}" ; do
export "$l=$LANGUAGE"
done
TYPE=(backlog feat fix docs style refactor test chore)
Expand Down Expand Up @@ -61,7 +61,7 @@ function build() {
if [[ -z $@ ]]; then
ALL="-a"
else
ALL=$@
ALL=$*
fi
MSGFILE="`git rev-parse --git-dir`COMMIT-MSG.tmp"

Expand Down

0 comments on commit 8901f37

Please sign in to comment.