Commit 128385a8 authored by Natanael Copa's avatar Natanael Copa

lbu status: only compare files

parent b89d96cb
......@@ -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
......
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