mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 15:35:38 +00:00
STEAM_SYNC_SH: code cleanup
This commit is contained in:
parent
27e5b237bf
commit
8bdd08cd74
|
@ -1106,7 +1106,7 @@
|
||||||
"name": "ES-DE",
|
"name": "ES-DE",
|
||||||
"launch": "es-de"
|
"launch": "es-de"
|
||||||
},
|
},
|
||||||
"steam_rom_manager": {
|
"steam-rom-manager": {
|
||||||
"description": "Steam ROM Manager (used to sync RetroDECK favorites with Steam)",
|
"description": "Steam ROM Manager (used to sync RetroDECK favorites with Steam)",
|
||||||
"name": "Steam ROM Manager",
|
"name": "Steam ROM Manager",
|
||||||
"launch": "steam-rom-manager"
|
"launch": "steam-rom-manager"
|
||||||
|
|
|
@ -80,7 +80,7 @@ prepare_component() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$component" =~ ^(steam_rom_manager|all)$ ]]; then
|
if [[ "$component" =~ ^(steam-rom-manager|all)$ ]]; then
|
||||||
component_found="true"
|
component_found="true"
|
||||||
log i "----------------------"
|
log i "----------------------"
|
||||||
log i "Prepearing Steam ROM Manager"
|
log i "Prepearing Steam ROM Manager"
|
||||||
|
@ -89,7 +89,6 @@ prepare_component() {
|
||||||
local srm_path="/var/config/steam-rom-manager/userData"
|
local srm_path="/var/config/steam-rom-manager/userData"
|
||||||
create_dir -d $srm_path
|
create_dir -d $srm_path
|
||||||
cp -fv "$config/steam-rom-manager/"*.json $srm_path
|
cp -fv "$config/steam-rom-manager/"*.json $srm_path
|
||||||
#steam-rom-manager list #TODO: what is this for?
|
|
||||||
|
|
||||||
log i "Updating steamDirectory and romDirectory lines in $srm_path/userConfigurations.json"
|
log i "Updating steamDirectory and romDirectory lines in $srm_path/userConfigurations.json"
|
||||||
jq --arg steamDir "$HOME/.steam/steam" --arg romDir "$rdhome/.sync" \
|
jq --arg steamDir "$HOME/.steam/steam" --arg romDir "$rdhome/.sync" \
|
||||||
|
|
|
@ -348,7 +348,7 @@ addToSteam() {
|
||||||
|
|
||||||
chmod +x "$launcher"
|
chmod +x "$launcher"
|
||||||
|
|
||||||
zypak-wrapper steam-rom-manager add "$launcher"
|
/app/bin/zypak-wrapper.sh steam-rom-manager add "$launcher"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue