File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed
Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,12 @@ for file in $(git diff --name-only "$@")
4444do
4545 test -n " $DEBUG " && echo " git blame $file "
4646 # $1 - since $2 - until
47- git blame " $NOT_WHITESPACE " --line-porcelain " $1 " -- " $file " 2> /dev/null |
47+ # shellcheck disable=SC2086
48+ git blame $NOT_WHITESPACE --line-porcelain " $1 " -- " $file " 2> /dev/null |
4849 LC_ALL=C sed -n " $PATTERN " | sort | uniq -c | LC_ALL=C sed ' s/^\(.\)/- \1/' >> " $MERGED_LOG "
4950 # if $2 not given, use current commit as "until"
50- git blame " $NOT_WHITESPACE " --line-porcelain " ${2-@ } " -- " $file " 2> /dev/null |
51+ # shellcheck disable=SC2086
52+ git blame $NOT_WHITESPACE --line-porcelain " ${2-@ } " -- " $file " 2> /dev/null |
5153 LC_ALL=C sed -n " $PATTERN " | sort | uniq -c | LC_ALL=C sed ' s/^\(.\)/+ \1/' >> " $MERGED_LOG "
5254done
5355
Original file line number Diff line number Diff line change @@ -44,9 +44,11 @@ while true; do
4444 esac
4545
4646 if [[ $cmd == ! * ]]; then
47- eval " ${cmd: 1} "
47+ # shellcheck disable=SC2086
48+ eval ${cmd: 1}
4849 elif [[ $cmd == git* ]]; then
49- eval " $cmd "
50+ # shellcheck disable=SC2086
51+ eval $cmd
5052 else
5153 eval git " $cmd "
5254 fi
Original file line number Diff line number Diff line change @@ -107,11 +107,12 @@ function scp_and_stage
107107 if [ -n " $list " ]
108108 then
109109 local _TMP=${0/// }
110+ # shellcheck disable=SC2086
110111 echo " $list " > " $_TMP " &&
111- _sanitize " $list " &&
112+ _sanitize $list &&
112113 _info " Pushing to $remote ($( git config " remote.$remote .url" ) )" &&
113114 rsync -rlDv --files-from=" $_TMP " ./ " $( git config " remote.$remote .url" ) /" &&
114- git add --force " $list " &&
115+ git add --force $list &&
115116 rm " $_TMP "
116117 fi
117118
You can’t perform that action at this time.
0 commit comments