diff --git a/txood/healthcheck.sh b/txood/healthcheck.sh index 4b04c8e..e028135 100755 --- a/txood/healthcheck.sh +++ b/txood/healthcheck.sh @@ -4,7 +4,7 @@ set -ex # Get the latest file with extension .sa from /root/.txoo/$BITCOIN_NETWORK/public directory and get the block number from the file name TXOO_LOCATION=/root/.txoo/$BITCOIN_NETWORK/public -latest_block=$(ls -r1t $TXOO_LOCATION | grep '.sa' | head -n1 | cut -d'-' -f1) +latest_block=$(ls -r1 $TXOO_LOCATION | grep '.sa' | head -n1 | cut -d'-' -f1) # Check if no file was found if [ -z "$latest_block" ]; then