diff --git a/global.sh b/global.sh index 402d7601..1d6cc0e6 100755 --- a/global.sh +++ b/global.sh @@ -67,10 +67,8 @@ conf_write() { # If there is no config file I initalize the file with the the default values if [ ! -f "$rd_conf" ] then - if [ ! -d /var/config/retrodeck ] # Check if the RetroDECK config directory exists - then - mkdir -p /var/config/retrodeck - fi + + mkdir -p /var/config/retrodeck echo "RetroDECK config file not found in $rd_conf" echo "Initializing" touch $rd_conf @@ -104,4 +102,4 @@ else echo "Found RetroDECK config file in $rd_conf" echo "Loading it" source "$rd_conf" -fi \ No newline at end of file +fi