mirror of
https://codeberg.org/spire/docker-tf2-server.git
synced 2026-08-02 12:14:52 +02:00
update base image
This commit is contained in:
parent
0ebf4da114
commit
3784620a33
6 changed files with 34 additions and 24 deletions
12
clean.sh
12
clean.sh
|
|
@ -1,14 +1,12 @@
|
|||
#! /bin/bash
|
||||
|
||||
ls -l $SERVER
|
||||
ls -l /home/tf2/hlserver/tf2
|
||||
cd $SERVER/tf2/tf/maps
|
||||
|
||||
MAPS_KEEP=("cp_badlands.bsp")
|
||||
MAPS_ALL=( $(find -type f -name "*.bsp" -printf "%f\n") )
|
||||
|
||||
# MAPS_DELETE=($(diff MAPS_ALL[@] MAPS_KEEP[@]))
|
||||
MAPS_DELETE=$(echo ${MAPS_ALL[@]} ${MAPS_KEEP[@]} | tr ' ' '\n' | sort | uniq -u)
|
||||
|
||||
rm ${MAPS_DELETE[@]}
|
||||
mv cp_badlands.{bsp,keep}
|
||||
rm *.bsp
|
||||
mv cp_badlands.{keep,bsp}
|
||||
|
||||
cd $SERVER/tf2/tf
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue