enhance hourly snapshots
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-01-14 16:09:13 +11:00
parent 417c7c8127
commit 44ae2094f3
2 changed files with 7 additions and 7 deletions

View File

@@ -20,10 +20,11 @@ func GetFilePath(path string) string {
// check if filename exists
if _, err := os.Stat(path); os.IsNotExist((err)) {
slog.Info("File not found, searching in same directory as binary", "filename", path)
if filepath.IsAbs(path) {
slog.Info("File not found, using absolute path", "filename", path)
return path
}
slog.Info("File not found, searching in same directory as binary", "filename", path)
// if not, check that it exists in the same directory as the currently executing binary
ex, err2 := os.Executable()
if err2 != nil {