From 4da0e6f1faef43767c50c9a8454afd8507343f44 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Thu, 6 Oct 2022 18:53:38 -0400 Subject: [PATCH 1/3] This whole line has got to go --- retrodeck.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/retrodeck.sh b/retrodeck.sh index 5ab2d8f9..9d305797 100644 --- a/retrodeck.sh +++ b/retrodeck.sh @@ -464,7 +464,6 @@ finit() { --ok-label "Cancel" \ --extra-button "Internal" \ --extra-button "SD Card" \ - # --extra-button "Advanced" --text="Welcome to the first configuration of RetroDECK.\nThe setup will be quick but please READ CAREFULLY each message in order to avoid misconfigurations.\n\nWhere do you want your roms folder to be located?" ) echo "Choice is $choice" From 22907250ae915a028d07f0847617eaad128c10db Mon Sep 17 00:00:00 2001 From: icenine451 Date: Thu, 6 Oct 2022 21:34:18 -0400 Subject: [PATCH 2/3] Fixed config directory creation on fresh install --- global.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/global.sh b/global.sh index 7b957a46..402d7601 100755 --- a/global.sh +++ b/global.sh @@ -67,7 +67,10 @@ 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 echo "RetroDECK config file not found in $rd_conf" echo "Initializing" touch $rd_conf From 30c690f885aba913f75497204ae0bb2046247cd4 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Fri, 7 Oct 2022 08:48:35 +0200 Subject: [PATCH 3/3] 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