mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
Post R5 Build 4 fixes - Added a more robust test case for the et-api installation as an experiment.
This commit is contained in:
+19
-3
@@ -1,7 +1,23 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Author : Gaston Gonzalez
|
# Author : Gaston Gonzalez
|
||||||
# Date : 13 August 2025
|
# Date : 13 August 2025
|
||||||
# Purpose : Test et-api installation
|
# 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)
|
OUT=$(ls /opt/emcomm-tools-api/bin/et-api 2>/dev/null)
|
||||||
exit $?
|
exit $?
|
||||||
|
|||||||
Reference in New Issue
Block a user