summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.go b/main.go
index cc8275e..ce8ea95 100644
--- a/main.go
+++ b/main.go
@@ -88,6 +88,10 @@ func main() {
spool.Warn("%v\n", err)
os.Exit(1)
}
+ if target == nil {
+ spool.Warn("no target selected.\n")
+ os.Exit(0)
+ }
err = run.Run(source.Source, target, args...)
if err != nil {
spool.Warn("%v\n", err)