Skip to content

Instantly share code, notes, and snippets.

@grassjelly
Last active October 11, 2023 16:27
Show Gist options
  • Save grassjelly/e47576469a6b9f419fa2710ddeef7818 to your computer and use it in GitHub Desktop.
Save grassjelly/e47576469a6b9f419fa2710ddeef7818 to your computer and use it in GitHub Desktop.
copy_textures.sh
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