Last active
October 11, 2023 16:27
-
-
Save grassjelly/e47576469a6b9f419fa2710ddeef7818 to your computer and use it in GitHub Desktop.
copy_textures.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for d in http/client/assets/* ; do | |
echo $d | |
if [[ -d "$d/materials/textures" ]]; then | |
if [ -f "$d/meshes" ]; then | |
rm $d/meshes | |
fi | |
if [ ! -d "$d/meshes" ]; then | |
mkdir -p $d/meshes | |
fi | |
cp -r $d/materials/textures/* $d/meshes | |
echo "$d" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment