]> git.corax.cc Git - foundry/commitdiff
include/context: Make foundry_context_get_logs() search the right path
authorMatthias Kruk <m@m10k.eu>
Sun, 8 Aug 2021 02:24:41 +0000 (11:24 +0900)
committerMatthias Kruk <m@m10k.eu>
Sun, 8 Aug 2021 02:24:41 +0000 (11:24 +0900)
The log path in foundry_context_get_logs() is incorrect, causing the
method to search for logfiles in an incorrect directory.
This commit changes the log directory in foundry_context_get_logs() so
that logs from the correct directory are returned.

include/context.sh

index 6bddd2ed984fe5ee293c822bd5050649240d6e81..47caae83c26d432541bd5e998a4836be4bfdd79d 100644 (file)
@@ -143,7 +143,7 @@ foundry_context_get_logs() {
        local logs
        local log
 
-       logdir="$__foundry_context_root/$context/$logtype"
+       logdir="$__foundry_context_root/$context/logs/$logtype"
        logs=()
 
        while read -r log; do