From f8f64a4df8a634ea536608edb20cb5000de8f286 Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Sat, 13 Nov 2021 16:13:24 +1100 Subject: [PATCH] add "all" option for scanning all choicepoints --- sss.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sss.sh b/sss.sh index 4c2347c..35b5925 100755 --- a/sss.sh +++ b/sss.sh @@ -20,6 +20,8 @@ KEEPHH=12 KEEPDD=15 DEV=$1 +[ "$2" = "all" ] || LSCP="-s" + if [ -z "$DEV" ] ; then DEVS=( $( mount | grep nilfs2 | sed 's/ .*//' ) ) DEV=${DEVS[0]} @@ -51,7 +53,7 @@ function marksnap() { { flock 9 date "+$DEV: %Y-%m-%d %H:%M:%S ---- checking" >&2 - lscp -s $DEV | while read CNO DATE TIME REST ; do + lscp $LSCP $DEV | while read CNO DATE TIME REST ; do TS="$DATE $TIME" [ "$CNO" = "CNO" ] && continue if [[ ! "$TS" > "$YEARLY" ]] ; then -- 2.39.2