zombietextures/build.sh
zombie 6e3a0580fa
hopefully i did this right and it wont catch fire
i forked zombietextures so thomas doesnt get mad about the scipts folder
and so i dont get mad about having a maps folder
2023-09-27 17:51:20 -04:00

25 lines
652 B
Bash

#!/bin/bash
# Get the current user. This assumes you are running the script as the desired user.
USER=$(whoami)
#build the image
python timeatbuild.py
#move the build image
mv overlay_datetime_image.png zombietextures.pk3dir/textures/zombietextures_dev/overlay_datetime_image.png
# Define the destination directory
DEST_DIR="/home/$USER/.xonotic/data/"
# Delete and copy zombietextures.pk3dir
if [ -d "zombietextures.pk3dir" ]; then
if [ -d "${DEST_DIR}zombietextures.pk3dir" ]; then
rm -r "${DEST_DIR}zombietextures.pk3dir"
fi
cp -r zombietextures.pk3dir $DEST_DIR
else
echo "Folder zombietextures.pk3dir not found!"
fi