diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-02-23 14:08:48 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-02-23 14:08:48 +0000 |
commit | bb66d9eaf4ead2ea98cc12b40d481272b37b1a1a (patch) | |
tree | 039112b0e55c0404f37240ffb40e23f4b5223018 /lbu.in | |
parent | ecdbc0b2c2794ebf33bf321e9ec1d266779b684d (diff) | |
download | alpine-conf-bb66d9eaf4ead2ea98cc12b40d481272b37b1a1a.zip |
lbu: fix for lbu package /dev/null and lbu list
lbu did bad things with your /dev/null
Diffstat (limited to 'lbu.in')
-rw-r--r-- | lbu.in | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 } |