Removed check on folder creation

The check is not needed as if mkdir finds the oqth just does nothing.
This commit is contained in:
XargonWan 2022-10-07 08:48:35 +02:00 committed by GitHub
parent 22907250ae
commit 30c690f885
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,10 +67,8 @@ conf_write() {
# If there is no config file I initalize the file with the the default values # If there is no config file I initalize the file with the the default values
if [ ! -f "$rd_conf" ] if [ ! -f "$rd_conf" ]
then then
if [ ! -d /var/config/retrodeck ] # Check if the RetroDECK config directory exists
then
mkdir -p /var/config/retrodeck mkdir -p /var/config/retrodeck
fi
echo "RetroDECK config file not found in $rd_conf" echo "RetroDECK config file not found in $rd_conf"
echo "Initializing" echo "Initializing"
touch $rd_conf touch $rd_conf