Skip to content

Commit 329b9f8

Browse files
committed
fix: disable shellcheck instead of quoting
1 parent b4473c1 commit 329b9f8

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

bin/git-guilt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,12 @@ for file in $(git diff --name-only "$@")
4444
do
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"
5254
done
5355

bin/git-repl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

bin/git-scp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)