check if version is available

This commit is contained in:
rootzoll 2018-12-11 19:20:58 +01:00
parent c22a3b3fa1
commit fafcf82538
2 changed files with 14 additions and 0 deletions

View File

@ -27,6 +27,13 @@ fi
# load old or init raspiblitz config
source ${configFile}
# check if config files contains basic: version
if [ ${#raspiBlitzVersion} -eq 0 ]; then
echo "FAIL see ${logFile}"
echo "FAIL: missing raspiBlitzVersion in (${configFile})!" >> ${logFile}
exit 1
fi
# check if config files contains basic: network
if [ ${#network} -eq 0 ]; then
echo "FAIL see ${logFile}"

View File

@ -26,6 +26,13 @@ if [ ${configExists} -eq 0 ]; then
exit 1
fi
# check if config files contains basic: version
if [ ${#raspiBlitzVersion} -eq 0 ]; then
echo "FAIL see ${logFile}"
echo "FAIL: missing raspiBlitzVersion in (${configFile})!" >> ${logFile}
exit 1
fi
# check if config files contains basic: network
if [ ${#network} -eq 0 ]; then
echo "FAIL see ${logFile}"