diff options
author | Paweł Krupa <pawel@krupa.net.pl> | 2018-09-29 01:09:34 +0200 |
---|---|---|
committer | Costa Tsaousis <costa@tsaousis.gr> | 2018-09-29 02:09:34 +0300 |
commit | a1b6a7f5328974aaddd7f631135c58e1d620c820 (patch) | |
tree | f834274490755daeddc0b445e9c75d18b71b88e1 /kickstart-static64.sh | |
parent | 986e32a03b2f01ac09b23d7f1be28a2799d7fd3b (diff) |
[cleanup crusade] Shellcheck (#4261)
* lint libreswan module
* disable linting obsolete shell modules
* shellcheck more shell modules
* fix review; lint helper scripts
* more shellcheck
* fix SC2235 in apache.chart.sh
* shellcheck last portion of charts.d scripts
* final shellcheck; make travis blocking
* fix cppcheck
* fix indents; fix expansion
* fix local var assignments
Diffstat (limited to 'kickstart-static64.sh')
-rwxr-xr-x | kickstart-static64.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kickstart-static64.sh b/kickstart-static64.sh index 377ad8f51c..5ebf37597e 100755 --- a/kickstart-static64.sh +++ b/kickstart-static64.sh @@ -5,14 +5,15 @@ umask 022 # make sure UID is set +# shellcheck disable=SC2155 [ -z "${UID}" ] && export UID="$(id -u)" # --------------------------------------------------------------------------------------------------------------------- # library functions copied from installer/functions.sh which_cmd() { - which "${1}" 2>/dev/null || \ - command -v "${1}" 2>/dev/null + # shellcheck disable=SC2230 + which "${1}" 2>/dev/null || command -v "${1}" 2>/dev/null } check_cmd() { |