Commit bb66d9ea authored by Natanael Copa's avatar Natanael Copa

lbu: fix for lbu package /dev/null and lbu list

lbu did bad things with your /dev/null
parent ecdbc0b2
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment