STEAM_SYNC_SH: code cleanup

This commit is contained in:
XargonWan 2024-09-05 22:28:10 +09:00
parent 27e5b237bf
commit 8bdd08cd74
3 changed files with 3 additions and 4 deletions

View file

@ -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"

View file

@ -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" \

View file

@ -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