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() { ...@@ -289,6 +289,8 @@ cmd_package() {
if [ -z "$DRYRUN" ]; then if [ -z "$DRYRUN" ]; then
if [ "x$pkg" = "x-" ]; then if [ "x$pkg" = "x-" ]; then
cat "$tmppkg" cat "$tmppkg"
elif [ -b "$pkg" ] || [ -c "$pkg" ]; then
cat "$tmppkg" > "$pkg"
else else
if cp "$tmppkg" "$pkg.new"; then if cp "$tmppkg" "$pkg.new"; then
mv "$pkg.new" "$pkg" mv "$pkg.new" "$pkg"
...@@ -321,6 +323,7 @@ usage: $PROGRAM list|ls ...@@ -321,6 +323,7 @@ usage: $PROGRAM list|ls
cmd_list() { cmd_list() {
VERBOSE="-v" VERBOSE="-v"
DRYRUN="-n"
cmd_package /dev/null 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