Fixed variables system

This commit is contained in:
XargonWan 2022-09-19 09:25:49 +02:00 committed by GitHub
parent 2dbd536f24
commit d956c0ffee

View file

@ -57,7 +57,7 @@ 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
@ -65,6 +65,15 @@ then
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