My ubuntu 22.10 is trying to use ipv6 which times out or takes forever
with factorcode. Instead, force ipv4 for now.
: upload-images ( -- )
[
\ scp-name get-global scp-name or ,
+ "-4" , ! force ipv4
boot-image-names %
checksums-path ,
git-branch-destination [ print flush ] [ , ] bi
[
[
\ scp-name get-global scp-name or ,
+ "-4" , ! force ipv4
"." directory-files %
build-destination ,
] { } make try-process
: create-remote-upload-directory ( -- )
'[
"ssh" ,
+ "-4" , ! force ipv4
"sheeple@downloads.factorcode.org" ,
"mkdir -p downloads.factorcode.org/images/" factor-git-branch append ,
] { } make try-process ;