mirror of
https://github.com/bashclub/zfs-housekeeping.git
synced 2024-11-07 15:31:58 +01:00
Fix Anzahl Snaps 1 bei leeren Ergebnis (ANZSNAPS)
This commit is contained in:
parent
1e26b8a7b4
commit
28520c390e
@ -92,7 +92,7 @@ do
|
||||
else
|
||||
SNAPS=$(zfs list -r -t snap -H -o name -s creation | grep "${DATASET}@" | grep $MUSTER)
|
||||
fi
|
||||
ANZSNAPS=$(echo "$SNAPS"|wc -l|sed 's, ,,g')
|
||||
ANZSNAPS=$(echo "$SNAPS"|grep -v "^$"|wc -l|sed 's, ,,g')
|
||||
|
||||
echo "# Anzahl Snaps: $ANZSNAPS"
|
||||
if [ "$KFLAG" = "1" ]
|
||||
|
Loading…
Reference in New Issue
Block a user