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 "$@")
44
44
do
45
45
test -n " $DEBUG " && echo " git blame $file "
46
46
# $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 |
48
49
LC_ALL=C sed -n " $PATTERN " | sort | uniq -c | LC_ALL=C sed ' s/^\(.\)/- \1/' >> " $MERGED_LOG "
49
50
# 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 |
51
53
LC_ALL=C sed -n " $PATTERN " | sort | uniq -c | LC_ALL=C sed ' s/^\(.\)/+ \1/' >> " $MERGED_LOG "
52
54
done
53
55
Original file line number Diff line number Diff line change @@ -44,9 +44,11 @@ while true; do
44
44
esac
45
45
46
46
if [[ $cmd == ! * ]]; then
47
- eval " ${cmd: 1} "
47
+ # shellcheck disable=SC2086
48
+ eval ${cmd: 1}
48
49
elif [[ $cmd == git* ]]; then
49
- eval " $cmd "
50
+ # shellcheck disable=SC2086
51
+ eval $cmd
50
52
else
51
53
eval git " $cmd "
52
54
fi
Original file line number Diff line number Diff line change @@ -107,11 +107,12 @@ function scp_and_stage
107
107
if [ -n " $list " ]
108
108
then
109
109
local _TMP=${0/// }
110
+ # shellcheck disable=SC2086
110
111
echo " $list " > " $_TMP " &&
111
- _sanitize " $list " &&
112
+ _sanitize $list &&
112
113
_info " Pushing to $remote ($( git config " remote.$remote .url" ) )" &&
113
114
rsync -rlDv --files-from=" $_TMP " ./ " $( git config " remote.$remote .url" ) /" &&
114
- git add --force " $list " &&
115
+ git add --force $list &&
115
116
rm " $_TMP "
116
117
fi
117
118
You can’t perform that action at this time.
0 commit comments