Skip to content

Commit 304786d

Browse files
authored
Try #304:
2 parents bd8684c + 12bd81a commit 304786d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

actions/overlay_action.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ package actions
2626

2727
import (
2828
"fmt"
29+
"os"
2930
"path"
3031

3132
"github.com/go-debos/debos"
@@ -42,6 +43,13 @@ func (overlay *OverlayAction) Verify(context *debos.DebosContext) error {
4243
if _, err := debos.RestrictedPath(context.Rootdir, overlay.Destination); err != nil {
4344
return err
4445
}
46+
47+
if len(overlay.Origin) == 0 {
48+
if _, err := os.Stat(overlay.Source); err != nil {
49+
return err
50+
}
51+
}
52+
4553
return nil
4654
}
4755

0 commit comments

Comments
 (0)