Files
kiwistation/tools/travis/check_filedirs.sh
T
oranges 89a3c304d1 Refactors travis building
Tools (tgui and changelog) are split out into their own build and are not
installed/built in the standard per map build, this should give developers
better visibility on if it's a tool breakage, or their code is faulty

This also moves most of the travis related scripts into a single folder
this is entirely for sanity reasons, they've also all be made user
executeable
2016-06-01 06:59:47 +00:00

16 lines
328 B
Bash
Executable File

#!/bin/bash
if [ -n "$1" ]
then
dme=$1
else
echo "Specify a DME to check"
exit 1
fi
if [[ $(awk '/BEGIN_FILE_DIR/{flag=1;next}/END_FILE_DIR/{flag=0}flag' $dme | wc -l) -ne 1 ]]
then
echo "File DIR was ticked, please untick it, see: https://tgstation13.org/phpBB/viewtopic.php?f=5&t=321 for more"
exit 1
fi