Post R5 Build 4 fixes - Added a more robust test case for the et-api installation as an experiment.

This commit is contained in:
thetechprepper
2025-08-20 20:29:09 -07:00
parent e3edc70be0
commit b7a57f408a
+19 -3
View File
@@ -1,7 +1,23 @@
#!/bin/bash
# Author : Gaston Gonzalez
# Date : 13 August 2025
# Purpose : Test et-api installation
# Author : Gaston Gonzalez
# Date : 13 August 2025
# Updated : 20 August 2025
# Purpose : Test et-api installation
FILES=(
"faa.csv"
"license.csv"
"zip2geo.csv"
"zip2geo-elevation.csv"
)
for file in "${FILES[@]}"; do
OUT=$(ls /opt/emcomm-tools-api/data/${file} 2>/dev/null)
if [[ $? -ne 0 ]]; then
echo -e "\t* Required file '$file' does not exist."
exit 1
fi
done
OUT=$(ls /opt/emcomm-tools-api/bin/et-api 2>/dev/null)
exit $?