Skip to content

Commit

Permalink
Try #304:
Browse files Browse the repository at this point in the history
  • Loading branch information
bors[bot] authored Apr 28, 2022
2 parents bd8684c + 12bd81a commit 304786d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions actions/overlay_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ package actions

import (
"fmt"
"os"
"path"

"github.com/go-debos/debos"
Expand All @@ -42,6 +43,13 @@ func (overlay *OverlayAction) Verify(context *debos.DebosContext) error {
if _, err := debos.RestrictedPath(context.Rootdir, overlay.Destination); err != nil {
return err
}

if len(overlay.Origin) == 0 {
if _, err := os.Stat(overlay.Source); err != nil {
return err
}
}

return nil
}

Expand Down

0 comments on commit 304786d

Please sign in to comment.