mirror of
https://github.com/restic/restic.git
synced 2026-05-28 04:35:41 -04:00
fix compilation error
This commit is contained in:
parent
2bc03b7963
commit
8b85047b6b
1 changed files with 2 additions and 2 deletions
|
|
@ -150,8 +150,8 @@ func (opts *BackupOptions) AddFlags(f *pflag.FlagSet) {
|
|||
opts.ReadConcurrency = uint(readConcurrency)
|
||||
|
||||
// parse read inode and ctime from env, on error the default value will be used
|
||||
opts.IgnoreInode, _ := strconv.ParseBool(os.Getenv("RESTIC_IGNORE_INODE"))
|
||||
opts.IgnoreCtime, _ := strconv.ParseBool(os.Getenv("RESTIC_IGNORE_CTIME"))
|
||||
opts.IgnoreInode, _ = strconv.ParseBool(os.Getenv("RESTIC_IGNORE_INODE"))
|
||||
opts.IgnoreCtime, _ = strconv.ParseBool(os.Getenv("RESTIC_IGNORE_CTIME"))
|
||||
|
||||
// parse host from env, if not exists or empty the default value will be used
|
||||
if host := os.Getenv("RESTIC_HOST"); host != "" {
|
||||
|
|
|
|||
Loading…
Reference in a new issue