From 957654ed1672c7ca933583549b9d8e9f37b1c802 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Sun, 30 Apr 2023 22:29:20 -0400 Subject: [PATCH] minor fix --- system-status | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/system-status b/system-status index cd603ca..7d5567d 100755 --- a/system-status +++ b/system-status @@ -140,13 +140,13 @@ write-status() { # PS4='+ $(date "+%2N") ' # allow failure in case there are no snapshots yet. # shellcheck disable=SC2012 - shopt -u nullglob - files=($btrbk_root/$vol.20*) shopt -s nullglob - snaps=() - if (( ${#files[@]} )); then - snaps=($(ls -1avdr "${files[@]}" 2>/dev/null |head -n1 || : )) + files=($btrbk_root/$vol.20*) + shopt -u nullglob + if (( ! ${#files[@]} )); then + continue fi + snaps=($(ls -1avdr "${files[@]}" 2>/dev/null |head -n1 || : )) now=$EPOCHSECONDS maxtime=0 for s in ${snaps[@]}; do -- 2.30.2