diff --git a/repos/gems/run/depot_autopilot.run b/repos/gems/run/depot_autopilot.run index cc36c43847..fbef16fa51 100644 --- a/repos/gems/run/depot_autopilot.run +++ b/repos/gems/run/depot_autopilot.run @@ -85,6 +85,11 @@ proc autopilot_create_tar_from_depot_binaries { archive_path args } { check_for_missing_depot_archives + if {[llength $content] == 0} { + puts stderr "Error: no content for depot.tar" + exit -1 + } + eval "exec tar cf $archive_path -T /dev/null -C [depot_dir] [lsort -unique $content]" }