setup_maps.sh: Fix "No such file" errors (#522)

This commit is contained in:
Thomas--S 2019-12-08 02:07:25 +01:00 committed by ANAND
parent c875175fd8
commit 28a9444ecb

View file

@ -4,9 +4,12 @@ cd mods/ctf/ctf_map/ctf_map_core/maps/
for f in *; do for f in *; do
if [ -d ${f} ]; then if [ -d ${f} ]; then
# Screenshot # Screenshot
if [ -f ${f}/screenshot.png ]; then
cp ${f}/screenshot.png ../textures/${f}.png cp ${f}/screenshot.png ../textures/${f}.png
fi
# Skybox textures # Skybox textures
if [ -f ${f}/skybox_1.png ]; then
cp ${f}/skybox_1.png ../textures/${f}_skybox_1.png cp ${f}/skybox_1.png ../textures/${f}_skybox_1.png
cp ${f}/skybox_2.png ../textures/${f}_skybox_2.png cp ${f}/skybox_2.png ../textures/${f}_skybox_2.png
cp ${f}/skybox_3.png ../textures/${f}_skybox_3.png cp ${f}/skybox_3.png ../textures/${f}_skybox_3.png
@ -14,4 +17,5 @@ for f in *; do
cp ${f}/skybox_5.png ../textures/${f}_skybox_5.png cp ${f}/skybox_5.png ../textures/${f}_skybox_5.png
cp ${f}/skybox_6.png ../textures/${f}_skybox_6.png cp ${f}/skybox_6.png ../textures/${f}_skybox_6.png
fi fi
fi
done done