Skip to content

Commit

Permalink
extra: use try-process instead of "run-process drop"
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed Feb 3, 2024
1 parent 3fd0b93 commit c44ba7a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion extra/docker/docker.factor
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ SYMBOL: docker-password
docker-path "login"
"-p" docker-password get-global
"-u" docker-username get-global
} run-process drop ;
} try-process ;

GENERIC: docker-pull ( obj -- )

Expand Down
6 changes: 3 additions & 3 deletions extra/git/git-tests.factor
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ IN: git.tests

: 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

Expand Down
2 changes: 1 addition & 1 deletion extra/machine-learning/data-sets/data-sets.factor
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ PRIVATE>
] 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> [
Expand Down
4 changes: 2 additions & 2 deletions extra/zoneinfo/update/update.factor
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ IN: zoneinfo.update

: 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"
Expand Down

0 comments on commit c44ba7a

Please sign in to comment.