Compare commits
2 commits
20af9d045d
...
ae33901201
Author | SHA1 | Date | |
---|---|---|---|
|
ae33901201 | ||
|
913c0a4940 |
2 changed files with 4 additions and 4 deletions
|
@ -34,13 +34,13 @@ prelaunch () {
|
||||||
# Assume Save Data needs to be restored!
|
# Assume Save Data needs to be restored!
|
||||||
if [ -f "$STCS_SAVEPATH" ]; then
|
if [ -f "$STCS_SAVEPATH" ]; then
|
||||||
#echo "Savedata $STCS_SAVEPATH is a file!"
|
#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
|
fi
|
||||||
if [ -d "$STCS_SAVEPATH" ]; then
|
if [ -d "$STCS_SAVEPATH" ]; then
|
||||||
#echo "Savedata $STCS_SAVEPATH is a folder!"
|
#echo "Savedata $STCS_SAVEPATH is a folder!"
|
||||||
rsync -az "$STCS_SYNCED_SAVADATA_PATH/$(basename $STCS_SAVEPATH)/" "$STCS_SAVEPATH/"
|
rsync -az "$STCS_SYNCED_SAVADATA_PATH/$(basename $STCS_SAVEPATH)/" "$STCS_SAVEPATH/"
|
||||||
fi
|
fi
|
||||||
cp "$STCS_SYNCED_TIMESTAMP_PATH" "$STCS_CACHED_TIMESTAMP_PATH"
|
rsync -az "$STCS_SYNCED_TIMESTAMP_PATH" "$STCS_CACHED_TIMESTAMP_PATH"
|
||||||
fi
|
fi
|
||||||
echo "[CereSaves] prelaunch complete"
|
echo "[CereSaves] prelaunch complete"
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,7 @@ postlaunch () {
|
||||||
# Back up Save Data
|
# Back up Save Data
|
||||||
if [ -f "$STCS_SAVEPATH" ]; then
|
if [ -f "$STCS_SAVEPATH" ]; then
|
||||||
#echo "Savedata $STCS_SAVEPATH is a file!"
|
#echo "Savedata $STCS_SAVEPATH is a file!"
|
||||||
cp "$STCS_SAVEPATH" "$STCS_SYNCED_SAVADATA_PATH/"
|
rsync -az "$STCS_SAVEPATH" "$STCS_SYNCED_SAVADATA_PATH/"
|
||||||
fi
|
fi
|
||||||
if [ -d "$STCS_SAVEPATH" ]; then
|
if [ -d "$STCS_SAVEPATH" ]; then
|
||||||
#echo "Savedata $STCS_SAVEPATH is a folder!"
|
#echo "Savedata $STCS_SAVEPATH is a folder!"
|
||||||
|
|
|
@ -3,5 +3,5 @@
|
||||||
"name": "CereSaves",
|
"name": "CereSaves",
|
||||||
"description": "A Janky Cloud Save Manager",
|
"description": "A Janky Cloud Save Manager",
|
||||||
"url": "https://gitdab.com/cere/CereSaves",
|
"url": "https://gitdab.com/cere/CereSaves",
|
||||||
"command": "/home/cere/Code/CereSaves/stcs-wrapper.sh ${command}"
|
"command": "/home/user/.local/bin/stcs-wrapper.sh ${command}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue