create-fs-uae-uuids script error
-
Re: [Guide] Getting EmulationStation to work with FS-UAE
Hi all,
i'm trying to follow the instructions to get emulationStation to work with FS-UAE but i get the following error when launching create-fs-uae-uuidscommand substitution: riga 28: EOF non atteso durante la ricerca di "'"
command substitution: riga 29: errore di sintassi: EOF non attesoit seems it can't find something here
file=echo $name | sed -e 's/[^a-z0-9\._\-\&\']/ /gi' | tr -s ' '
file="$file ($year).fs-uae"but i'm not confident with script syntax.
Thank you -
just to add, i'm using emulationstation on x86 pc
-
Seems like an scripting error - I think the original script has an error.
Try this version, it has a minor modification.#!/usr/bin/env bash # --- Configuration settings start here --- # Location of FS-UAE Launcher.sqlite file database="$HOME/Documents/FS-UAE/Data/Databases/Launcher.sqlite" # Location of Amiga folder in EmulationStation. Ignore trailing / amiga="$HOME/RetroPie/roms/amiga" # ----- Code starts here ----- # Remove any existing .fs-uae files rm -f $amiga/*.fs-uae # Connect to the FS-UAE database sqlite3 "$database" "select name,year,uuid from 'game' where have=4" | while read line ; do # Extract the game name, year and UUID name=`echo $line | cut -d"|" -f1` year=`echo $line | cut -d"|" -f2` uuid=`echo $line | cut -d"|" -f3` # Tell the user what we've found echo "Found: $name ($year)" # Create a valid filename based on the game name file=`echo $name | sed -e 's/[^a-z0-9\._\-\&\]/ /gi' | tr -s ' '` file="$file ($year).fs-uae" # Create a file with that name containing the UUID for the game echo -n "$uuid" > "$amiga/$file" done
-
I can now create .fs-uae files succesfully! Many thanks!
-
Oops, sorry about that. Have updated the original post.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.