Signed-off-by: Jonatan Schlag jonatan.schlag@ipfire.org --- src/functions/functions.config | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/functions/functions.config b/src/functions/functions.config index e11a1c2..6a148c7 100644 --- a/src/functions/functions.config +++ b/src/functions/functions.config @@ -58,8 +58,7 @@ config_get_id_from_config() { assert [ $# -eq 1 ] local config=${1}
- local hook=$(config_get_hook_from_config ${config}) - echo "${config//"${hook}."/}" + echo "${config##*.}"
}
@@ -69,5 +68,5 @@ config_get_hook_from_config() { assert [ $# -eq 1 ] local config=${1}
- echo "${config//.*[[:digit:]]/}" + echo "${config%%.*[[:digit:]]}" }