mirror of
https://github.com/bashclub/zfs-housekeeping.git
synced 2024-11-07 15:31:58 +01:00
Merge pull request #4 from sts23/patch-2
Fix Anzahl Snaps 1 bei leeren Ergebnis (ANZSNAPS)
This commit is contained in:
commit
45da8286c2
@ -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