Add support for pre-commit hook/linting
.pre-commit-config.yaml
-----------------------
o Create initial config for pre-commit hook.
misc/*
o Basic inline cleanups courtesy of the pre-commit hook.
Signed-off-by: Joey Armstrong <jarmstrong@linuxfoundation.org>
Change-Id: I6aa20216ade22b1a7406e8358864fb245842b713
diff --git a/jjb/shell/github-release.sh b/jjb/shell/github-release.sh
index fec3872..dddfe0c 100755
--- a/jjb/shell/github-release.sh
+++ b/jjb/shell/github-release.sh
@@ -504,7 +504,7 @@
{
local -n ref=$1; shift
local varpath="$ref"
-
+
DEST_GOPATH=${DEST_GOPATH:-}
if [ -n "$DEST_GOPATH" ]; then
mkdir -p "$GOPATH/src/$DEST_GOPATH"
@@ -939,9 +939,9 @@
## -----------------------------------------------------------------------
function my_gh()
{
- func_echo "ENTER"
+ func_echo "ENTER"
set -x
-
+
declare -a cmd=()
cmd+=("$gh_cmd")
@@ -958,7 +958,7 @@
case "$arg" in
# Modes
- -*debug)
+ -*debug)
# shellcheck disable=SC2034
declare -i -g debug=1
;;