Updates for the pre-commit hook
.pre-commit-config.yaml
-----------------------
o Add more hooks
bin/setup.sh
makefiles/commands/kail/godownloader.sh
---------------------------------------
o Shellcheck cleanups
install/README.md
-----------------
o Add a project copyright notice.
makefiles/.../*.mk
------------------
o Update copyright notice.
o Replace legacy var $(ONF_MAKEDIR) with onf-mk-dir=
makefiles/virtualenv/include.mk
-------------------------------
o Fixed a small problem with targets clean & sterile.
o Clean target should remove
Change-Id: If624531f4d38aaacc200d3c49aee2c3804122ffb
Signed-off-by: Joey Armstrong <jarmstrong@linuxfoundation.org>
diff --git a/bin/setup.sh b/bin/setup.sh
index 600e995..d72ddae 100755
--- a/bin/setup.sh
+++ b/bin/setup.sh
@@ -33,7 +33,8 @@
## -----------------------------------------------------------------------
function program_paths()
{
- declare -g pgm="$(readlink --canonicalize-existing "$0")"
+ declare -g pgm
+ pgm="$(readlink --canonicalize-existing "$0")"
declare -g pgmbin="${pgm%/*}"
declare -g pgmroot="${pgmbin%/*}"
declare -g pgmname="${pgm%%*/}"
@@ -41,6 +42,8 @@
readonly pgm
readonly pgmbin
readonly pgmroot
+
+ # shellcheck disable=SC2034
readonly pgmname
return