summaryrefslogtreecommitdiff
path: root/.github/workflows/check_misc.yml
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-12-01 13:49:48 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-12-02 23:45:43 +0900
commiteb6785356d5c5775f26a49ae1138fdb0214ec509 (patch)
treedec4a752feb3d581a270d26ff30b89cbf3bc715d /.github/workflows/check_misc.yml
parent11871e49c4fe493d6b958046969bc863f7fb6627 (diff)
Avoid bash specific variable substitution
It may cause parse errors in some other sh even in never executed parts.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6844
Diffstat (limited to '.github/workflows/check_misc.yml')
-rw-r--r--.github/workflows/check_misc.yml7
1 files changed, 5 insertions, 2 deletions
diff --git a/.github/workflows/check_misc.yml b/.github/workflows/check_misc.yml
index da59ceda9a..d315959549 100644
--- a/.github/workflows/check_misc.yml
+++ b/.github/workflows/check_misc.yml
@@ -17,10 +17,13 @@ jobs:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- name: Check if C-sources are US-ASCII
run: |
- ! grep -r -n '[^ -~]' *.[chy] include internal win32/*.[ch]
+ ! grep -r -n '[^ -~]' -- *.[chy] include internal win32/*.[ch]
- name: Check for trailing spaces
run: |
- ! git grep -n '[ ]$' '*.rb' '*.[chy]'
+ ! git grep -n '[ ]$' -- '*.rb' '*.[chy]'
+ - name: Check for bash specific substitution in configure.ac
+ run: |
+ ! git grep -n '\${[A-Za-z_0-9]*/' -- configure.ac
- name: Check for header macros
run: |
! for header in ruby/*.h; do \