: with-empty-test-git-repo ( quot -- )
'[
- { "git" "init" } run-process drop
+ { "git" "init" } try-process
@
] with-test-directory ; inline
: with-zero-byte-file-repo ( quot -- )
'[
"empty-file" touch-file
- { "git" "add" "empty-file" } run-process drop
- { "git" "commit" "-m" "initial commit of empty file" } run-process drop
+ { "git" "add" "empty-file" } try-process
+ { "git" "commit" "-m" "initial commit of empty file" } try-process
@
] with-empty-test-git-repo ; inline
] with-directory ;
: gzip-decompress-file ( path -- )
- { "gzip" "-d" } swap suffix run-process drop ;
+ { "gzip" "-d" } swap suffix try-process ;
: mnist-data>array ( bytes -- seq )
16 tail-slice 28 28 * <groups> [
: update-zoneinfo ( -- )
"eggert" "tz" zoneinfo-versions last [
- { "make" "leapseconds" } run-process drop
- { "make" "version" } run-process drop
+ { "make" "leapseconds" } try-process
+ { "make" "version" } try-process
"vocab:zoneinfo" [
{
"africa"