Skip to content

Commit

Permalink
Fixed "grep: Invalid range end" if locale is different then C
Browse files Browse the repository at this point in the history
Fixes #78
  • Loading branch information
jkroepke committed Feb 18, 2021
1 parent c3b94c4 commit 43ede2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Run the sh-checker
uses: luizm/[email protected].0
uses: luizm/[email protected].1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SHELLCHECK_OPTS: -x
Expand Down
2 changes: 1 addition & 1 deletion scripts/drivers/_custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ _custom_driver_get_secret() {
driver_is_file_encrypted() {
input="${1}"

grep -q -e "${_DRIVER_REGEX}" "${input}"
LC_ALL=C.UTF-8 LC_COLLATE=C grep -q -e "${_DRIVER_REGEX}" "${input}"
}

driver_encrypt_file() {
Expand Down

0 comments on commit 43ede2c

Please sign in to comment.