mirror of
https://github.com/dragoonDorise/EmuDeck.git
synced 2025-05-05 16:02:48 +00:00
21 lines
360 B
Bash
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
|
|
|
|
|
|
} |