diff options
author | Florian Dold <florian@dold.me> | 2023-10-09 23:00:54 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-10-09 23:00:54 +0200 |
commit | e9fcdd18a153944adfd5d71d71a746c5d4677191 (patch) | |
tree | 823f281d68c5894908b78ff634fa107000d7ef1f | |
parent | 76c661cc022d0080778559d3194217eec77e766c (diff) | |
download | libeufin-e9fcdd18a153944adfd5d71d71a746c5d4677191.tar.gz libeufin-e9fcdd18a153944adfd5d71d71a746c5d4677191.tar.bz2 libeufin-e9fcdd18a153944adfd5d71d71a746c5d4677191.zip |
-comment
-rw-r--r-- | util/src/main/kotlin/TalerConfig.kt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/util/src/main/kotlin/TalerConfig.kt b/util/src/main/kotlin/TalerConfig.kt index 9479404f..5e765f8f 100644 --- a/util/src/main/kotlin/TalerConfig.kt +++ b/util/src/main/kotlin/TalerConfig.kt @@ -319,6 +319,13 @@ class TalerConfig( return null } + /** + * Substitute ${...} and $... placeholders in a string + * with values from the PATHS section in the + * configuration and environment variables + * + * This substitution is typically only done for paths. + */ fun pathsub(x: String, recursionDepth: Int = 0): String { if (recursionDepth > 128) { throw TalerConfigError("recursion limit in path substitution exceeded") |