[arch-dev-public] [PATCH] we need to source the config file first
Signed-off-by: Pierre Schmitz <pierre@archlinux.de> --- misc-scripts/ftpdir-cleanup | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/misc-scripts/ftpdir-cleanup b/misc-scripts/ftpdir-cleanup index 0d13805..6a69d72 100755 --- a/misc-scripts/ftpdir-cleanup +++ b/misc-scripts/ftpdir-cleanup @@ -5,8 +5,6 @@ if [ $# -ne 2 ]; then exit 1 fi -${CLEANUP_DRYRUN} && echo 'dry run mode is active' - reponame=$1 dest=$2 @@ -15,6 +13,8 @@ dest=$2 . "$(dirname $0)/../db-functions" . "$(dirname $0)/../config" +${CLEANUP_DRYRUN} && echo 'dry run mode is active' + ftppath_base="$FTP_BASE/$reponame/$FTP_OS_SUFFIX" for arch in ${ARCHES[@]}; do -- 1.7.0 -- Pierre Schmitz, https://users.archlinux.de/~pierre
participants (1)
-
Pierre Schmitz