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/makefiles/commands/kail/godownloader.sh b/makefiles/commands/kail/godownloader.sh
index 54a9fd6..63354bb 100755
--- a/makefiles/commands/kail/godownloader.sh
+++ b/makefiles/commands/kail/godownloader.sh
@@ -56,6 +56,7 @@
shift $((OPTIND - 1))
TAG=$1
}
+
# this function wraps all the destructive operations
# if a curl|bash cuts off the end of the script due to
# network, either nothing will happen or will syntax error
@@ -139,16 +140,20 @@
but credit (and pull requests) appreciated.
------------------------------------------------------------------------
EOF
+
is_command() {
command -v "$1" >/dev/null
}
echoerr() {
echo "$@" 1>&2
}
+
log_prefix() {
+ # shellcheck disable=SC2317
echo "$0"
}
_logp=6
+
log_set_priority() {
_logp="$1"
}
@@ -207,7 +212,7 @@
armv6*) arch="armv6" ;;
armv7*) arch="armv7" ;;
esac
- echo ${arch}
+ echo "${arch}"
}
uname_os_check() {
os=$(uname_os)