LinuxGSM/.github/workflows/version-check.sh
Daniel Gibbs 0bec0ca218
feat: convert functions dir to modules dir (#4169)
* functions dir will be deleted after 14 days
2023-04-05 00:16:37 +01:00

16 lines
497 B
Bash

#!/bin/bash
version=$(grep "version=" linuxgsm.sh | sed -e 's/version//g' | tr -d '="')
modulesversion=$(grep "modulesversion=" lgsm/modules/core_modules.sh | sed -e 's/modulesversion//g' | tr -d '="')
if [ "${version}" != "${modulesversion}" ]; then
echo "Error! LinuxGSM version mismatch"
echo "Version: ${version}"
echo "Modules Version: ${modulesversion}"
exit 1
else
echo "Success! LinuxGSM version match"
echo "Version: ${version}"
echo "Modules Version: ${modulesversion}"
exit
fi