Archived
1
This repository has been archived on 2025-08-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
playbookctl/internal/space_creator/static/dd.datetime.sh
2024-12-23 01:55:48 +03:00

21 lines
597 B
Bash

#!/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\" }"