Add support of Fantastic packages

Sources: https://github.com/fantastic-packages/packages
Binary: https://fantastic-packages.github.io/packages/releases/
This commit is contained in:
remittor
2023-11-28 16:26:18 +03:00
parent 968d70c0af
commit 0b2cddbc6f
2 changed files with 30 additions and 0 deletions

View File

@@ -107,3 +107,9 @@ get_cfg_opt_flag() {
echo "$k"
}
get_cfg_opt_value() {
local cfg=$1
local name=$2
local k=$( grep -o -P '(?<=^CONFIG_'$name'=").*(?=")' "$cfg" 2> /dev/null )
echo "$k"
}