From 128385a8bec9c088665084414ff0b684323e09d3 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 25 May 2009 09:05:27 +0000 Subject: lbu status: only compare files --- lbu.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lbu.in') 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 -- cgit v1.2.3