replaced cp with rsync
This commit is contained in:
parent
913c0a4940
commit
ae33901201
1 changed files with 3 additions and 3 deletions
|
@ -34,13 +34,13 @@ prelaunch () {
|
|||
# Assume Save Data needs to be restored!
|
||||
if [ -f "$STCS_SAVEPATH" ]; then
|
||||
#echo "Savedata $STCS_SAVEPATH is a file!"
|
||||
cp "$STCS_SYNCED_SAVADATA_PATH/$(basename $STCS_SAVEPATH)" "$STCS_SAVEPATH"
|
||||
rsync -az "$STCS_SYNCED_SAVADATA_PATH/$(basename $STCS_SAVEPATH)" "$STCS_SAVEPATH"
|
||||
fi
|
||||
if [ -d "$STCS_SAVEPATH" ]; then
|
||||
#echo "Savedata $STCS_SAVEPATH is a folder!"
|
||||
rsync -az "$STCS_SYNCED_SAVADATA_PATH/$(basename $STCS_SAVEPATH)/" "$STCS_SAVEPATH/"
|
||||
fi
|
||||
cp "$STCS_SYNCED_TIMESTAMP_PATH" "$STCS_CACHED_TIMESTAMP_PATH"
|
||||
rsync -az "$STCS_SYNCED_TIMESTAMP_PATH" "$STCS_CACHED_TIMESTAMP_PATH"
|
||||
fi
|
||||
echo "[CereSaves] prelaunch complete"
|
||||
}
|
||||
|
@ -54,7 +54,7 @@ postlaunch () {
|
|||
# Back up Save Data
|
||||
if [ -f "$STCS_SAVEPATH" ]; then
|
||||
#echo "Savedata $STCS_SAVEPATH is a file!"
|
||||
cp "$STCS_SAVEPATH" "$STCS_SYNCED_SAVADATA_PATH/"
|
||||
rsync -az "$STCS_SAVEPATH" "$STCS_SYNCED_SAVADATA_PATH/"
|
||||
fi
|
||||
if [ -d "$STCS_SAVEPATH" ]; then
|
||||
#echo "Savedata $STCS_SAVEPATH is a folder!"
|
||||
|
|
Loading…
Reference in a new issue