From 7ee2fa6755c7485d7d42d8016df25ade44632637 Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Mon, 18 Apr 2022 12:05:20 +0200 Subject: [PATCH] Move variables definition (to prevent a stupid error) --- clear-repo.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/clear-repo.sh b/clear-repo.sh index 50ad647..ae41429 100755 --- a/clear-repo.sh +++ b/clear-repo.sh @@ -13,6 +13,9 @@ init() { exit 1 fi source variables.conf + repo_db_file=$repo_name.db.tar + repo_db_filesfile=$repo_name.files.tar + awk_rules_file='parser.awk' if [ ! -e $repo_directory/$repo_db_file ] ; then echo "Could not find db file. Exiting..." exit 1 @@ -64,11 +67,6 @@ clearRepo() { run_directory_path=$(pwd) -# Set parameters -repo_db_file=$repo_name.db.tar -repo_db_filesfile=$repo_name.files.tar -awk_rules_file='parser.awk' - # Main process if [ "$1" = "" ]; then