mirror of
https://github.com/dragoonDorise/EmuDeck.git
synced 2024-05-20 05:10:46 -04:00
20 lines
512 B
Bash
20 lines
512 B
Bash
#!/bin/bash
|
|
updateEmuFP(){
|
|
|
|
name=$1
|
|
ID=$2
|
|
|
|
setMSG "Updating $name"
|
|
|
|
flatpak update $ID -y
|
|
flatpak override $ID --filesystem=host --user
|
|
flatpak override $ID --share=network --user
|
|
|
|
shName=$(echo "$name" | awk '{print tolower($0)}')
|
|
|
|
find "${toolsPath}"/launchers/ -type f -iname $shName.sh | while read f; do echo "deleting $f"; rm -f "$f"; done;
|
|
cp -v "${EMUDECKGIT}"/tools/launchers/"${shName}".sh "${toolsPath}"/launchers/"${shName}".sh
|
|
chmod +x "${toolsPath}"/launchers/"${shName}".sh
|
|
|
|
}
|