X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=check-subvol-stale;h=286f3ba8b63121a7c3c0f5d51493b383cf84ffe5;hb=fde3746c622eb042ce1fd051cdfea2f9a247cd53;hp=f012c4f97459f38d0e24ff75df3f13c7fca68dfb;hpb=ce4cacd36c5b5babeea85d0f93771017e6169180;p=distro-setup diff --git a/check-subvol-stale b/check-subvol-stale index f012c4f..286f3ba 100644 --- a/check-subvol-stale +++ b/check-subvol-stale @@ -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