src: shellcheck-ify shell scripts

This commit is contained in:
Frantisek Sumsal
2021-04-20 18:39:36 +02:00
parent 0084d4f6b5
commit 437e889b18
11 changed files with 98 additions and 85 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_//'