Browse Source

dir

pull/4207/head
Daniel Gibbs 2 years ago
parent
commit
027bc2003b
  1. 4
      .github/workflows/serverlist-validate.sh

4
.github/workflows/serverlist-validate.sh

@ -2,8 +2,8 @@
echo "Checking that all the game servers are listed in all csv files" echo "Checking that all the game servers are listed in all csv files"
echo "this check will ensure serverlist.csv has the same number of lines (-2 lines) as the other csv files" echo "this check will ensure serverlist.csv has the same number of lines (-2 lines) as the other csv files"
# count the number of lines in the serverlist.csv # count the number of lines in the serverlist.csv
cd lgsm/modules cd lgsm/data
serverlistcount="$(wc -l < lgsm/modules/serverlist.csv)" serverlistcount="$(wc -l < serverlist.csv)"
echo "serverlistcount: $serverlistcount" echo "serverlistcount: $serverlistcount"
# get list of all csv files starting with ubunutu debian centos # get list of all csv files starting with ubunutu debian centos
csvlist="$(ls -1 | grep -E '^(ubuntu|debian|centos|rhel|almalinux|rocky).*\.csv$')" csvlist="$(ls -1 | grep -E '^(ubuntu|debian|centos|rhel|almalinux|rocky).*\.csv$')"

Loading…
Cancel
Save