summaryrefslogtreecommitdiffstats
path: root/lbu.in
diff options
context:
space:
mode:
Diffstat (limited to 'lbu.in')
-rw-r--r--lbu.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/lbu.in b/lbu.in
index da8ba86..8d5042a 100644
--- a/lbu.in
+++ b/lbu.in
@@ -289,6 +289,8 @@ cmd_package() {
if [ -z "$DRYRUN" ]; then
if [ "x$pkg" = "x-" ]; then
cat "$tmppkg"
+ elif [ -b "$pkg" ] || [ -c "$pkg" ]; then
+ cat "$tmppkg" > "$pkg"
else
if cp "$tmppkg" "$pkg.new"; then
mv "$pkg.new" "$pkg"
@@ -321,6 +323,7 @@ usage: $PROGRAM list|ls
cmd_list() {
VERBOSE="-v"
+ DRYRUN="-n"
cmd_package /dev/null
}