1
0
Fork 0
mirror of https://github.com/JasonN3/build-container-installer.git synced 2025-12-25 19:07:54 +01:00

include vars and conditional tests

This commit is contained in:
Jason N. 2024-03-12 14:12:44 -04:00
parent 67dbcd4ba4
commit 520cb5f06e
5 changed files with 22 additions and 2 deletions

View file

@ -1,14 +0,0 @@
#!/bin/bash
FOUND_VERSION=$(cat /mnt/install/etc/os-release | grep VERSION_ID | cut -d= -f2)
if [[ ${FOUND_VERSION} != ${VERSION} ]]
then
echo "Version mismatch"
echo "Expected: ${VERSION}"
echo "Found: ${FOUND_VERSION}"
exit 1
else
echo "Correct version found"
exit 0
fi