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:
parent
67dbcd4ba4
commit
520cb5f06e
5 changed files with 22 additions and 2 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue