mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-14 03:38:27 +00:00
Remove files removed by Steam update
This commit is contained in:
parent
914bbdb626
commit
74fe4c958e
@ -889,6 +889,18 @@ doUpdate() {
|
||||
else
|
||||
rsync -a "$arkStagingDir/." "$arkserverroot"
|
||||
fi
|
||||
cd "$arkserverroot"
|
||||
find Engine ShooterGame linux64 -depth -print |
|
||||
grep -v '^ShooterGame/\(Saved\|Content/Mods\)' |
|
||||
while read f; do
|
||||
if [ ! -e "staging/${f}" ]; then
|
||||
if [ -f "$f" ]; then
|
||||
rm "${f}"
|
||||
else
|
||||
rmdir "${f}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
else
|
||||
echo "Performing ARK update"
|
||||
cd "$steamcmdroot"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user