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