Skip to content

Commit

Permalink
[osutils] improve install() utility
Browse files Browse the repository at this point in the history
use case (*nix only):
    $ sudo plumage install plumage
  • Loading branch information
fperrad committed Jan 2, 2011
1 parent 7460ad9 commit 539d122
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runtime/parrot/library/osutils.pir
Expand Up @@ -197,6 +197,10 @@ osutils - Parrot OS Utilities
L2:
$I0 = newer(dst, src)
if $I0 goto L3
$I0 = stat dst, .STAT_EXISTS
unless $I0 goto L4
unlink(dst, verbose :named('verbose'))
L4:
cp(src, dst, verbose :named('verbose'))
unless has_exe goto L3
unless exe goto L3
Expand Down

0 comments on commit 539d122

Please sign in to comment.