shellcheck: clean up shellcheck warnings and enable
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ibc843b98c0fea97a31d3d15b556a32f091bf8e47
diff --git a/jenkins/run-meta-ci b/jenkins/run-meta-ci
index 023b8de..4ce317b 100755
--- a/jenkins/run-meta-ci
+++ b/jenkins/run-meta-ci
@@ -11,7 +11,7 @@
# GERRIT_BRANCH: Branch under test (default is master)
export LANG=en_US.UTF8
-cd $WORKSPACE
+cd "$WORKSPACE"
GERRIT_BRANCH=${GERRIT_BRANCH:-"master"}
@@ -20,25 +20,26 @@
# git clone https://github.com/openbmc/openbmc-test-automation.git --branch ${GERRIT_BRANCH} --single-branch
git clone https://github.com/openbmc/openbmc-test-automation.git --branch master --single-branch
-export META_REPO=`basename $GERRIT_PROJECT`
+META_REPO=$(basename "$GERRIT_PROJECT")
+export META_REPO
# Move the extracted meta layer to a dir based on it's meta-* name
-mv $GERRIT_PROJECT $META_REPO
+mv "$GERRIT_PROJECT" "$META_REPO"
# Remove openbmc dir in prep for full repo clone
rm -rf openbmc
# Clone openbmc/openbmc
-git clone https://github.com/openbmc/openbmc.git --branch ${GERRIT_BRANCH} --single-branch
+git clone https://github.com/openbmc/openbmc.git --branch "${GERRIT_BRANCH}" --single-branch
# Make sure meta-* directory is there
-mkdir -p ./openbmc/$META_REPO/
+mkdir -p ./openbmc/"$META_REPO"/
# Clean out the dir to handle delete/rename of files
-rm -rf ./openbmc/$META_REPO/*
+rm -rf ./openbmc/"$META_REPO"/*
# Copy the extracted meta code into it
-cp -Rf $META_REPO/* ./openbmc/$META_REPO/
+cp -Rf "$META_REPO"/* ./openbmc/"$META_REPO"/
# Create a dummy commit so code update will pick it up
cd openbmc