diff options
author | szubersk <[email protected]> | 2022-11-12 22:22:49 +1000 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-11-18 11:24:48 -0800 |
commit | a5087965fe2fbb8cae60232b9b41b7ce7464daf1 (patch) | |
tree | 807f38ec5a5d55e758ca7eda167fada38cc13adb /autogen.sh | |
parent | c3b6fd3d594f27827d69d972b41520ef0646bdea (diff) |
Ubuntu 22.04 integration: ShellCheck
- Add new SC2312 global exclude.
```
Consider invoking this command separately to avoid masking its return
value (or use '|| true' to ignore). [SC2312]
```
- Correct errors detected by new ShellCheck version.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Richard Yao <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Signed-off-by: szubersk <[email protected]>
Closes #14148
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh index c81709018..39eb82203 100755 --- a/autogen.sh +++ b/autogen.sh @@ -16,7 +16,7 @@ automake --version | awk '{print $NF; exit}' | ( dir="${dir%/Makefile.am}" grep -q '%[CD]%' "$dir/Makefile.am" || continue - reldir="${dir#$root}" + reldir="${dir#"$root"}" reldir="${reldir#/}" canon_reldir="$(printf '%s' "$reldir" | tr -C 'a-zA-Z0-9@_' '_')" |