mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2024-11-05 05:04:13 +01:00
version bump
This commit is contained in:
parent
2a7e233cdb
commit
92feaef5bb
@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [1.5.3] - 2022-02-13
|
||||
|
||||
### Fixed
|
||||
|
||||
- Error throwing not finding config even it's not being used.
|
||||
|
||||
## [1.5.2] - 2022-02-13
|
||||
|
||||
### Fixed
|
||||
|
@ -3,6 +3,7 @@ package cmd
|
||||
import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/cupcakearmy/autorestic/internal"
|
||||
"github.com/cupcakearmy/autorestic/internal/colors"
|
||||
@ -78,11 +79,11 @@ func initConfig() {
|
||||
configPaths = append(configPaths, xdgConfig)
|
||||
}
|
||||
for _, cfgPath := range configPaths {
|
||||
if internal.VERBOSE {
|
||||
colors.Faint.Printf("> Adding config path: '%s'\n", cfgPath)
|
||||
}
|
||||
viper.AddConfigPath(cfgPath)
|
||||
}
|
||||
if internal.VERBOSE {
|
||||
colors.Faint.Printf("Using config paths: %s\n", strings.Join(configPaths, " "))
|
||||
}
|
||||
cfgFileName := ".autorestic"
|
||||
viper.SetConfigName(cfgFileName)
|
||||
viper.AutomaticEnv()
|
||||
|
@ -16,7 +16,7 @@ import (
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
const VERSION = "1.5.2"
|
||||
const VERSION = "1.5.3"
|
||||
|
||||
var CI bool = false
|
||||
var VERBOSE bool = false
|
||||
|
Loading…
Reference in New Issue
Block a user