Skip to content

Commit

Permalink
download!
Browse files Browse the repository at this point in the history
  • Loading branch information
sbragagnolo committed Oct 20, 2016
1 parent e8e078a commit c2f6a8b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions examples/download.st
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#!/usr/bin/scale
| version destination |

version := 50.
destination := system pwd.
| version |

version := (system arguments optionAt: #v ifAbsent: [ 50 ]) asInteger.
destination := system arguments optionAt: #d ifPresent: [: op | op asFileReference ]ifAbsent: [ system pwd ].
system stdout << 'Downloading ' << version asString << ' into: ' << destination fullName; flush.
system loadPharo: version into: destination.
system stdout << 'Downloading ' << version asString << ' into: ' << system pwd fullName; flush.
system loadPharo: version into: system pwd.

0 comments on commit c2f6a8b

Please sign in to comment.