Archived
1

first commit

This commit is contained in:
2024-12-23 01:55:48 +03:00
commit b514cc36fb
33 changed files with 1969 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\" }"