accept $NO_DEPORT
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path"
|
"path"
|
||||||
@@ -13,6 +14,11 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func deport(ctx context.Context, p string) error {
|
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)
|
assStreams, err := assStreams(ctx, p)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in New Issue
Block a user