mirror of
https://github.com/dragoonDorise/EmuDeck.git
synced 2024-06-02 19:47:51 -04:00
21 lines
355 B
Bash
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
|
|
|
|
|
|
} |