diff options
author | root <root@nc.nor.wtbts.org> | 2008-11-19 15:16:55 +0000 |
---|---|---|
committer | root <root@nc.nor.wtbts.org> | 2008-11-19 15:16:55 +0000 |
commit | 38e8e54501201fd7a87327a43563d43e0237a5fd (patch) | |
tree | bb9730018e121eef272f8454c8ae65a680ecfc2d /lbu | |
parent | e937f31bd1d54b5dacbc306f93fe8274968552f9 (diff) | |
download | alpine-conf-38e8e54501201fd7a87327a43563d43e0237a5fd.zip |
allow lbu package send to stdout by using filename '-'
Diffstat (limited to 'lbu')
-rw-r--r-- | lbu | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -273,7 +273,13 @@ cmd_package() { # actually commit unless dryrun mode if [ $rc -eq 0 ]; then - [ -z "$DRYRUN" ] && cp "$tmppkg" "$pkg" + if [ -z "$DRYRUN" ]; then + if [ "x$pkg" = "x-" ]; then + cat "$tmppkg" + else + cp "$tmppkg" "$pkg" + fi + fi vecho "Created $pkg" else rm -f "$CURRENT_TDB" |