Merge pull request #19370 from mrc0mmand/shellcheck-pt4

More shellcheck shenanigans
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2021-04-21 18:14:32 +02:00
committed by GitHub
24 changed files with 181 additions and 152 deletions
+5 -4
View File
@@ -1,8 +1,9 @@
#!/bin/sh
#!/bin/bash
# SPDX-License-Identifier: LGPL-2.1-or-later
set -eu
set -o pipefail
$1 -dM -include netinet/in.h - </dev/null | \
awk '/^#define[ \t]+IPPROTO_[^ \t]+[ \t]+[^ \t]/ { print $2; }' | \
sed -e 's/IPPROTO_//'
${1:?} -dM -include netinet/in.h - </dev/null | \
awk '/^#define[ \t]+IPPROTO_[^ \t]+[ \t]+[^ \t]/ { print $2; }' | \
sed -e 's/IPPROTO_//'