forked from nbrooks211/zombietextures
25 lines
629 B
Bash
25 lines
629 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 textures/zombietextures_dev/overlay_datetime_image.png
|
|
|
|
# Define the destination directory
|
|
DEST_DIR="/home/$USER/.xonotic/data/"
|
|
|
|
|
|
# Delete and copy zombietextures.pk3dir
|
|
if [ -d "../assets" ]; then
|
|
if [ -d "${DEST_DIR}zombietextures.pk3dir" ]; then
|
|
rm -r "${DEST_DIR}zombietextures.pk3dir"
|
|
fi
|
|
cp -r ../assets ${DEST_DIR}zombietextures.pk3dir
|
|
else
|
|
echo "Folder zombietextures.pk3dir not found!"
|
|
fi
|
|
|