Skip to content

Commit 13a1e5e

Browse files
committed
chore: placate shellcheck
1 parent 331a197 commit 13a1e5e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libevm/tooling/release/cherrypick.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
set -eu;
2626
set -o pipefail;
2727

28-
SELF_DIR=$(dirname $0)
28+
SELF_DIR=$(dirname "${0}")
2929
# The format of the `cherrypicks` file is guaranteed by a test so we can use simple parsing here.
30-
CHERRY_PICKS=$(cat "${SELF_DIR}/cherrypicks" | grep -Pv "^#" | awk '{print $1}')
30+
CHERRY_PICKS=$(< "${SELF_DIR}/cherrypicks" grep -Pv "^#" | awk '{print $1}')
3131

3232
commits=()
3333
for commit in ${CHERRY_PICKS}; do
@@ -39,7 +39,7 @@ for commit in ${CHERRY_PICKS}; do
3939
commits+=("${commit}");
4040
done
4141

42-
if [[ -z "${commits[@]// }" ]]; then # $x// removes whitespace
42+
if [[ -z "${commits[*]// }" ]]; then # $x// removes whitespace
4343
echo "No commits to cherry-pick";
4444
exit 0;
4545
fi

0 commit comments

Comments
 (0)