summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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