mirror of
https://github.com/bashclub/zfs-housekeeping.git
synced 2024-12-25 15:10:13 +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
|
else
|
||||||
SNAPS=$(zfs list -r -t snap -H -o name -s creation | grep "${DATASET}@" | grep $MUSTER)
|
SNAPS=$(zfs list -r -t snap -H -o name -s creation | grep "${DATASET}@" | grep $MUSTER)
|
||||||
fi
|
fi
|
||||||
ANZSNAPS=$(echo "$SNAPS"|wc -l|sed 's, ,,g')
|
ANZSNAPS=$(echo "$SNAPS"|grep -v "^$"|wc -l|sed 's, ,,g')
|
||||||
|
|
||||||
echo "# Anzahl Snaps: $ANZSNAPS"
|
echo "# Anzahl Snaps: $ANZSNAPS"
|
||||||
if [ "$KFLAG" = "1" ]
|
if [ "$KFLAG" = "1" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user