From 3ab2e9c6096483bf34320f7d4daae82e9b43f3bb Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Fri, 30 Aug 2024 10:39:11 +0900 Subject: [PATCH] Ignore shellcheck errors in admin ssh keys, fix test ssh connection ssh without -n or &1 | grep -qi "date: illegal option"; then @@ -92,7 +93,7 @@ while read -r line; do rotate_date=""; if [ -f "${LAST_ROTATE}${hostname}_${username}.last-rotate" ]; then # load last rotate timestamp and get YYYY-MM-DD - rotate_date=$(${datecmd} -d @"$(cat "${LAST_ROTATE}${hostname}_${username}.last-rotate")" +%F); + rotate_date=$(${datecmd} -d "@$(cat "${LAST_ROTATE}${hostname}_${username}.last-rotate")" +%F); fi # check for diff in username / hostname warning_string=""