various updates
[distro-setup] / check-subvol-stale
index f012c4f97459f38d0e24ff75df3f13c7fca68dfb..286f3ba8b63121a7c3c0f5d51493b383cf84ffe5 100644 (file)
@@ -215,7 +215,7 @@ for d; do
   stale=true
   # fresh if $svp has $last_snap as a snapshot,
   if btrfs sub show $svp 2>/dev/null | sed '0,/^\s*Snapshot(s):/d;s/^\s*//' | \
-      grep -xF ${last_snap#$root_dir/} ; then
+      grep -xF ${last_snap#$root_dir/} >/dev/null; then
     stale=false
   else # or else $svp is a snapshot of $last_snap. we use a uuid
     # comparison, which if I remember from the docs, is a bit more