summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2018-03-20 10:12:41 -0400
committerLusheng Ji <lji@research.att.com>2018-03-20 10:12:47 -0400
commit0ce8925dfd6e0af6c1cf6079018ea85c98db5a5a (patch)
tree5b839bb3afa89e011e2bef7fa73a334d589ea873
parent32433a5ff6218263dd6caee51e8fb3fb03eebaa0 (diff)
Fix archive building
Issue-ID: DCAEGEN2-206 Change-Id: Ia6934e28d4a3c336add919ffcde46319e6f2065b Signed-off-by: Lusheng Ji <lji@research.att.com>
-rw-r--r--scripts/mvn-phase-lib.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/mvn-phase-lib.sh b/scripts/mvn-phase-lib.sh
index 5293f47..aa3f637 100644
--- a/scripts/mvn-phase-lib.sh
+++ b/scripts/mvn-phase-lib.sh
@@ -275,15 +275,15 @@ build_archives_for_wagons()
{
rm -rf ./*.tgz ./*.zip venv-pkg
- SETUPFILES=$(find $(pwd) -name "setup.py")
+ SETUPFILES=$(find "$(pwd)" -name "setup.py")
CURDIR=$(pwd)
for SETUPFILE in $SETUPFILES; do
PLUGIN_FULL_DIR=$(dirname "$SETUPFILE")
- PLUGIN_BASE_DIR=$(basename "$PLUGIN_DIR")
+ PLUGIN_BASE_DIR=$(basename "$PLUGIN_FULL_DIR")
PLUGIN_NAME=$(grep 'name' "$SETUPFILE" | cut -f2 -d'=' | sed 's/[^0-9a-zA-Z\.]*//g')
PLUGIN_VERSION=$(grep 'version' "$SETUPFILE" | cut -f2 -d'=' | sed 's/[^0-9\.]*//g')
- cd ${PLUGIN_FULL_DIR}/..
+ cd "${PLUGIN_FULL_DIR}"/..
echo "In $(pwd), build plugin zip $PLUGIN_NAME, version $PLUGIN_VERSION"
zip -r "${PLUGIN_NAME}-${PLUGIN_VERSION}.zip" "./${PLUGIN_BASE_DIR}"
@@ -349,15 +349,15 @@ upload_raw_file()
upload_wagon_archives()
{
- SETUPFILES=$(find $(pwd) -name "setup.py")
+ SETUPFILES=$(find "$(pwd)" -name "setup.py")
CURDIR=$(pwd)
for SETUPFILE in $SETUPFILES; do
PLUGIN_FULL_DIR=$(dirname "$SETUPFILE")
- PLUGIN_BASE_DIR=$(basename "$PLUGIN_DIR")
+ PLUGIN_BASE_DIR=$(basename "$PLUGIN_FULL_DIR")
PLUGIN_NAME=$(grep 'name' "$SETUPFILE" | cut -f2 -d'=' | sed 's/[^0-9a-zA-Z\.]*//g')
PLUGIN_VERSION=$(grep 'version' "$SETUPFILE" | cut -f2 -d'=' | sed 's/[^0-9\.]*//g')
- cd ${PLUGIN_FULL_DIR}/..
+ cd "${PLUGIN_FULL_DIR}"/..
echo "In $(pwd), upload zip archive for $PLUGIN_NAME, version $PLUGIN_VERSION"
ARCHIVE_FILE_NAME="${PLUGIN_NAME}-${PLUGIN_VERSION}.zip"
if [ -z "$ARCHIVE_FILE_NAME" ]; then
@@ -374,7 +374,7 @@ upload_wagon_archives()
fi
upload_raw_file "${ARCHIVE_FILE_NAME}" "${PLUGIN_NAME}/${PLUGIN_VERSION}"
- cd ${CURDIR}
+ cd "${CURDIR}"
done
}