EmuDeck/functions/configEmuAI.sh
2023-11-30 22:29:33 +01:00

21 lines
355 B
Bash

#!/bin/bash
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
}