Move variables definition (to prevent a stupid error)

This commit is contained in:
Alexandre CATTEAU 2022-04-18 12:05:20 +02:00
parent 5103e3b6b0
commit 7ee2fa6755

View File

@ -13,6 +13,9 @@ init() {
exit 1 exit 1
fi fi
source variables.conf 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 if [ ! -e $repo_directory/$repo_db_file ] ; then
echo "Could not find db file. Exiting..." echo "Could not find db file. Exiting..."
exit 1 exit 1
@ -64,11 +67,6 @@ clearRepo() {
run_directory_path=$(pwd) 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 # Main process
if [ "$1" = "" ]; then if [ "$1" = "" ]; then