diff --git a/bootstrap.fish b/bootstrap.fish index 8c75e6d..11029da 100755 --- a/bootstrap.fish +++ b/bootstrap.fish @@ -22,8 +22,12 @@ for pair in (get-subvol-mounts) set safepath $subvoldir/$safename if not test -d $safepath - sudo btrfs subvolume snapshot -r $mount $safepath - set snapshots $snapshots $safepath + if not test -f $mount/.btrfish-ignore + sudo btrfs subvolume snapshot -r $mount $safepath + set snapshots $snapshots $safepath + else + echo ".btrfish-ignore found in $mount, skipping..." + end end end