From 397524b400bae757d59dd63f47813264002e7627 Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Wed, 18 Dec 2024 17:46:47 +0100 Subject: Shellcheck, make executable --- editpost.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 editpost.sh (limited to 'editpost.sh') diff --git a/editpost.sh b/editpost.sh old mode 100644 new mode 100755 index 2c0213b..2a9bcf4 --- a/editpost.sh +++ b/editpost.sh @@ -9,7 +9,8 @@ fi update_last_modified_at() { local file="$1" - local current_date="$(date +"%Y-%m-%d %H:%M %z")" + local current_date + current_date="$(date +"%Y-%m-%d %H:%M %z")" if grep -q '^last_modified_at:' "$file"; then sed -i "s|^last_modified_at:.*|last_modified_at: $current_date|" "$file" else -- cgit v1.2.3