Skip to content

Commit

Permalink
fix: trim cwd from IDA db file output
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Apr 9, 2024
1 parent ae5b221 commit 5dfef8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cmd/ipsw/cmd/dyld/dyld_ida.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@ var idaCmd = &cobra.Command{
}

if !viper.GetBool("dyld.ida.temp-db") {
log.WithField("db", dbFile).Info("πŸŽ‰ Done!")
cwd, _ := os.Getwd()
log.WithField("db", strings.TrimPrefix(dbFile, cwd)).Info("πŸŽ‰ Done!")
}

return nil
Expand Down
4 changes: 3 additions & 1 deletion cmd/ipsw/cmd/kernel/kernel_ida.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
"fmt"
"os"
"path/filepath"
"strings"

"github.com/apex/log"
"github.com/blacktop/go-macho"
Expand Down Expand Up @@ -243,7 +244,8 @@ var kernelIdaCmd = &cobra.Command{
}

if !viper.GetBool("kernel.ida.temp-db") {
log.WithField("db", dbFile).Info("πŸŽ‰ Done!")
cwd, _ := os.Getwd()
log.WithField("db", strings.TrimPrefix(dbFile, cwd)).Info("πŸŽ‰ Done!")
}

return nil
Expand Down

0 comments on commit 5dfef8e

Please sign in to comment.