Skip to content

Commit

Permalink
changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
michalpristas committed Jan 26, 2021
1 parent 0c460a8 commit 466f7d4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,14 +250,13 @@ func copyActionStore(newHash string) error {
storePaths := []string{info.AgentActionStoreFile(), info.AgentStateStoreFile()}

for _, currentActionStorePath := range storePaths {

newHome := filepath.Join(filepath.Dir(paths.Home()), fmt.Sprintf("%s-%s", agentName, newHash))
newActionStorePath := filepath.Join(newHome, filepath.Base(currentActionStorePath))

currentActionStore, err := ioutil.ReadFile(currentActionStorePath)
if os.IsNotExist(err) {
// nothing to copy
return nil
continue
}
if err != nil {
return err
Expand Down

0 comments on commit 466f7d4

Please sign in to comment.