1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-13 13:09:49 +04:00

fbt: moved FBT_NOEVN check to env setup script for *nix

This commit is contained in:
hedger
2024-02-20 22:32:39 +00:00
parent d731918197
commit bc98c788fe
2 changed files with 12 additions and 4 deletions

View File

@@ -76,6 +76,14 @@ fbtenv_restore_env()
unset FBT_TOOLCHAIN_PATH;
}
fbtenv_check_if_noenv_set()
{
if [ -n "${FBT_NOENV:-""}" ]; then
return 1;
fi
return 0;
}
fbtenv_check_sourced()
{
if [ -n "${FBT_SKIP_CHECK_SOURCED:-""}" ]; then
@@ -298,6 +306,9 @@ fbtenv_print_config()
fbtenv_main()
{
if ! fbtenv_check_if_noenv_set; then
return 0;
fi
fbtenv_check_sourced || return 1;
fbtenv_get_kernel_type || return 1;
if [ "$1" = "--restore" ]; then