diff --git a/src/upload.raku b/src/upload.raku index 4336ff2..432190d 100755 --- a/src/upload.raku +++ b/src/upload.raku @@ -111,7 +111,8 @@ sub MAIN( # Clean if there is more than one ttc folder, easiest way to locate the # correct one - if "build/ttc".IO.dir.elems > 1 { + my $ttc-path = "build/ttc".IO; + if !($ttc-path ~~ :e) || $ttc-path.dir.elems != 1 { # Do a pack clean build so we can find the ttms exit -1 unless run ; exit -1 unless run ;