EmuDeck/functions/configEmuAI.sh
Dragoon Dorise 4f4ddb61e9 shadps4
2024-12-25 21:59:37 +01:00

21 lines
360 B
Bash

#!/bin/bash
function configEmuAI(){
emu=$1
folderName=$2
folderPath=$3
gitLocation=$4
overwrite=$5
if [[ $overwrite == 'true' ]]; then
overwrite="--backup --suffix=.bak"
else
overwrite="--ignore-existing"
fi
setMSG "Updating $emu $folderName using $overwrite"
rsync -avhp --mkpath $gitLocation/ $folderPath $overwrite
}