We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
shellcheck
1 parent 331a197 commit 13a1e5eCopy full SHA for 13a1e5e
libevm/tooling/release/cherrypick.sh
@@ -25,9 +25,9 @@
25
set -eu;
26
set -o pipefail;
27
28
-SELF_DIR=$(dirname $0)
+SELF_DIR=$(dirname "${0}")
29
# 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}')
+CHERRY_PICKS=$(< "${SELF_DIR}/cherrypicks" grep -Pv "^#" | awk '{print $1}')
31
32
commits=()
33
for commit in ${CHERRY_PICKS}; do
@@ -39,7 +39,7 @@ for commit in ${CHERRY_PICKS}; do
39
commits+=("${commit}");
40
done
41
42
-if [[ -z "${commits[@]// }" ]]; then # $x// removes whitespace
+if [[ -z "${commits[*]// }" ]]; then # $x// removes whitespace
43
echo "No commits to cherry-pick";
44
exit 0;
45
fi
0 commit comments