accept $NO_DEPORT
parent
1c7dafc78b
commit
8b668af899
|
|
@ -4,6 +4,7 @@ import (
|
|||
"bytes"
|
||||
"context"
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path"
|
||||
|
|
@ -13,6 +14,11 @@ import (
|
|||
)
|
||||
|
||||
func deport(ctx context.Context, p string) error {
|
||||
if os.Getenv("NO_DEPORT") != "" {
|
||||
log.Printf("would deport %s", p)
|
||||
return nil
|
||||
}
|
||||
|
||||
assStreams, err := assStreams(ctx, p)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Reference in New Issue