diff options
| author | Benjamin Linskey | 2025-08-13 03:15:58 -0400 |
|---|---|---|
| committer | Benjamin Linskey | 2025-08-13 03:15:58 -0400 |
| commit | f5f2300f42b29a35573be54afd55de0710699616 (patch) | |
| tree | 2d48b5cfca6ab6b98925d178cf369671949fd521 | |
| parent | 2abe7e9aba03cec30136fc075ea3d26f4c6e2bf7 (diff) | |
| download | zfs-snapshots-f5f2300f42b29a35573be54afd55de0710699616.tar.gz | |
Remove dead code
| -rwxr-xr-x | snapshots.sh | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/snapshots.sh b/snapshots.sh index 1d23369..e85262c 100755 --- a/snapshots.sh +++ b/snapshots.sh @@ -145,10 +145,6 @@ fi # Prune snapshots. if [ -n "$prune" ]; then - if [ -n "$prune_only" ]; then - keep=$((keep + 1)) - fi - for dataset in "$@"; do snapshots=$(zfs list -t snapshot -o name -S name -H "$dataset") to_delete=$(printf "%s\n" "$snapshots" | grep "@${tag}-" | tail -n +"$((keep + 1))") |