Fix issue in init

This commit is contained in:
Alexandre CATTEAU 2022-04-18 12:02:06 +02:00
parent e6680cec18
commit 5103e3b6b0

View File

@ -12,11 +12,11 @@ init() {
echo "You cannot run this script as root!" echo "You cannot run this script as root!"
exit 1 exit 1
fi fi
source variables.conf
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
fi fi
source variables.conf
echo "ArchRepo clearing script" echo "ArchRepo clearing script"
} }