Archived
1
This commit is contained in:
2024-12-19 18:48:26 +03:00
commit 2186f92263
32 changed files with 1498 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#!/bin/bash
# vi: set tabstop=4 shiftwidth=4 noexpandtab :
#------------------------------------------------#
# Модуль получения текущего даты-времени.
#
# . . . . . . . . . . . . . . . . . . . . . . . .
# - dd.datetime:
# register: current_datetime
#------------------------------------------------#
source $1
set -euo pipefail
L_CHANGED=false
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
__curr_date=$(date +%Y%m%d_%H%M%S)
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
echo "{ \"changed\": ${L_CHANGED}, \"datetime\": \"$__curr_date\" }"