Skip to content

Commit

Permalink
fix: don't try to copy .prf files in savegame-transfer
Browse files Browse the repository at this point in the history
Since crawl/crawl@b7f16da2700d, these files
are not stored in the save directory any more, so for these versions,
mv -n gives an error. (However, savegame-transfer does appear to be
working despite the error. And mysteriously, some games still do have a
.prf present, but his may be an artifact of prior savegame transfers.)

This commit does *not* provide any cleanup for these files, so I
recommend that an admin manually clean them up. It may be easiest to
first do a savegame-transfer so they are collected in one place.
  • Loading branch information
rawlins committed Nov 5, 2023
1 parent e91bb7e commit a0e92f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chroot/sbin/savegame-transfer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ do
if test -d ${PREFIX}/${BINARY_MAIN_NAME}-${POSSIBLE_GAME_HASH}/saves/${GAME_MODE}
then
mv -n ${PREFIX}/${BINARY_MAIN_NAME}-${OUR_GAME_HASH}/saves/${GAME_MODE}/${CHAR_NAME}* ${PREFIX}/${BINARY_MAIN_NAME}-${OUR_GAME_HASH}/saves/${GAME_MODE}/start-${CHAR_NAME}-ns.prf ${PREFIX}/${BINARY_MAIN_NAME}-${POSSIBLE_GAME_HASH}/saves/${GAME_MODE}/
mv -n ${PREFIX}/${BINARY_MAIN_NAME}-${OUR_GAME_HASH}/saves/${GAME_MODE}/${CHAR_NAME}* ${PREFIX}/${BINARY_MAIN_NAME}-${POSSIBLE_GAME_HASH}/saves/${GAME_MODE}/
if test $? -eq 0
then
echo -e " ${C_GREEN}successful.${C_NORMAL}"
Expand Down

0 comments on commit a0e92f2

Please sign in to comment.