From 30c690f885aba913f75497204ae0bb2046247cd4 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Fri, 7 Oct 2022 08:48:35 +0200 Subject: [PATCH] Removed check on folder creation The check is not needed as if mkdir finds the oqth just does nothing. --- global.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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