From 02a83c1a761b7e61ea43d7436e4c5aee00660dfa Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Mon, 8 Apr 2019 10:55:41 +0200 Subject: [PATCH] Remove the leading 0 from the date output --- zzz_evobackup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zzz_evobackup b/zzz_evobackup index 999bc80..3ca1c88 100755 --- a/zzz_evobackup +++ b/zzz_evobackup @@ -80,7 +80,7 @@ pick_server() { salt=$(hostname | cksum | cut -d' ' -f1) # Pick an integer between 0 and the length of the SERVERS list # It changes each day - item=$(( ($(date +%d) + salt + increment) % list_length )) + item=$(( ($(date +%e) + salt + increment) % list_length )) # cut starts counting fields at 1, not 0. field=$(( item + 1 ))