diff --git a/config/profile.fish.in b/config/profile.fish.in index c0a234db..12b5e6f1 100644 --- a/config/profile.fish.in +++ b/config/profile.fish.in @@ -4,12 +4,21 @@ # See also [man debuginfod-client-config] for other environment variables # such as $DEBUGINFOD_MAXSIZE, $DEBUGINFOD_MAXTIME, $DEBUGINFOD_PROGRESS. +# Use local variables so we don't need to manually unset them +set --local prefix "@prefix@" + if not set --query DEBUGINFOD_URLS - # Use local variables so we don't need to manually unset them - set --local prefix "@prefix@" set --local files "@sysconfdir@/debuginfod/"*.urls set --local DEBUGINFOD_URLS (cat /dev/null $files 2>/dev/null | string replace '\n' ' ') if test -n "$DEBUGINFOD_URLS" set --global --export DEBUGINFOD_URLS "$DEBUGINFOD_URLS" end end + +if not set --query DEBUGINFOD_IMA_CERT_PATH + set --local files "@sysconfdir@/debuginfod/"*.certpath + set --local DEBUGINFOD_IMA_CERT_PATH (cat /dev/null $files 2>/dev/null | string replace '\n' ':') + if test -n "$DEBUGINFOD_IMA_CERT_PATH" + set --global --export DEBUGINFOD_IMA_CERT_PATH "$DEBUGINFOD_IMA_CERT_PATH" + end +end