summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-05-25 09:05:27 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-05-25 09:05:27 +0000
commit128385a8bec9c088665084414ff0b684323e09d3 (patch)
tree34d0284d0b47af35aaf47d02614989eef2d2f43d
parentb89d96cbb198f554f03d75b7ea15c7d88dc4b732 (diff)
downloadalpine-conf-128385a8bec9c088665084414ff0b684323e09d3.tar.bz2
alpine-conf-128385a8bec9c088665084414ff0b684323e09d3.tar.xz
lbu status: only compare files
-rw-r--r--lbu.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/lbu.in b/lbu.in
index a429493..48e615e 100644
--- a/lbu.in
+++ b/lbu.in
@@ -548,7 +548,8 @@ cmd_status() {
local b="$tmp/b/$f"
if [ ! -e "$a" ]; then
echo "A $f"
- elif [ "$b" -nt "$a" ] && ! cmp -s "$a" "$b"; then
+ elif [ -f "$a" ] && [ -f "$b" ] && [ "$b" -nt "$a" ] \
+ && ! cmp -s "$a" "$b"; then
echo "U $f"
fi
done