From 67d7b4d74fdd120ae673652ab4fe1c96114f5435 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Mon, 19 Sep 2022 09:25:49 +0200 Subject: [PATCH] Fixed variables system --- global.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/global.sh b/global.sh index 67182e05..cf432324 100755 --- a/global.sh +++ b/global.sh @@ -57,14 +57,23 @@ then echo "RetroDECK config file not found in $rd_conf" echo "Initializing" - echo "#!/bin/bash" >> $rd_conf + # Initializing the variables version="$hard_version" # if we are here means that the we are in a new installation, so the version is valorized with the hardcoded one rdhome="$HOME/retrodeck" # the retrodeck home, aka ~/retrodeck roms_folder="$rdhome/roms" # the default roms folder path - media_folder="$rdhome/retrodeck/downloaded_media" # the media folder, where all the scraped data is downloaded into - themes_folder="$rdhome/retrodeck/themes" # the themes folder + media_folder="$rdhome/retrodeck/downloaded_media" # the media folder, where all the scraped data is downloaded into + themes_folder="$rdhome/retrodeck/themes" # the themes folder sdcard="$default_sd" # Steam Deck SD default path + # Writing the variables for the first time + echo "#!/bin/bash" >> $rd_conf + echo "version=$version" >> $rd_conf + echo "rdhome=$rdhome" >> $rd_conf + echo "roms_folder=$roms_folder" >> $rd_conf + echo "media_folder=$media_folder" >> $rd_conf + echo "themes_folder=$themes_folder" >> $rd_conf + echo "sdcard=$sdcard" >> $rd_conf + # writing the needed variables in the config file conf_write