Files
GS13/tools/travis/check_filedirs.sh
Mark Suckerberg 16c03f3c43 passer deux
2020-01-28 19:56:37 -06: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