Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
fix: skip expand directory on stdin path
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Davis <[email protected]>
  • Loading branch information
JefeDavis committed Sep 9, 2021
1 parent d117938 commit 1ca811c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/instructions/yamlfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ func (yfs *YamlFiles) expandDirectories() error {
var paths []string

for i := 0; i <= len(y)-1; i++ {
if y[i].Path == "-" {
continue
}

if !path.IsAbs(y[i].Path) {
y[i].Path = path.Join(viper.GetString("instructionsDir"), y[i].Path)
}
Expand Down

0 comments on commit 1ca811c

Please sign in to comment.