mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 15:35:38 +00:00
Fixed variables system
This commit is contained in:
parent
2dbd536f24
commit
d956c0ffee
11
global.sh
11
global.sh
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue