From b94fc106baecdb23f62200d32a25f5adeedef310 Mon Sep 17 00:00:00 2001 From: Shengqi Chen Date: Thu, 8 Aug 2024 15:05:09 +0800 Subject: [PATCH] pypi_shadowmire: fix repo path Signed-off-by: Shengqi Chen --- pypi_shadowmire.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pypi_shadowmire.sh b/pypi_shadowmire.sh index 3d3fe82..2ddec4a 100755 --- a/pypi_shadowmire.sh +++ b/pypi_shadowmire.sh @@ -12,14 +12,14 @@ CONF="/tmp/shadowmire.conf" INIT=${INIT:-"0"} SHADOWMIRE_UPSTREAM=${SHADOWMIRE_UPSTREAM:-"0"} -if [ ! -d "$TUNASYNC_WORKING_DIR" ]; then - mkdir -p $TUNASYNC_WORKING_DIR +export REPO="${TUNASYNC_WORKING_DIR}/web" + +if [ ! -d "$REPO" ]; then + mkdir -p "$REPO" INIT="1" fi -export REPO="${TUNASYNC_WORKING_DIR}" - -echo "Syncing to $TUNASYNC_WORKING_DIR" +echo "Syncing to $REPO" DOWNLOAD_MIRROR="" if [[ $TUNASYNC_UPSTREAM != $PYPI_MASTER ]]; then