diff options
Diffstat (limited to 'modules/comments')
-rwxr-xr-x | modules/comments/main.sh | 9 | ||||
-rw-r--r-- | modules/comments/version | 1 |
2 files changed, 6 insertions, 4 deletions
diff --git a/modules/comments/main.sh b/modules/comments/main.sh index 1e88a52..a140a68 100755 --- a/modules/comments/main.sh +++ b/modules/comments/main.sh @@ -33,6 +33,7 @@ source $AK_LIBDIR/_ak_script source $AK_LIBDIR/_ak_ipfs source $AK_LIBDIR/_ak_gpg source $AK_LIBDIR/_ak_zblock +source $AK_LIBDIR/_ak_utils ZCOMMENTSDIR="$AK_WORKDIR/comments" TEMP="/tmp/aktmp" @@ -44,7 +45,7 @@ else _ak_log_info "zcommentsdir found" fi -_ak_modules_comments_create(){ +function _ak_modules_comments_create(){ if [ ! -z $1 ] then REFER_TO="$1" @@ -55,7 +56,7 @@ _ak_modules_comments_create(){ fi TEMP="$(_ak_make_temp_directory)" cd $TEMP - export COMMENTS_FILE="$(date -u +%s)" + export COMMENTS_FILE="$(_ak_datetime_unix)" vi $COMMENTS_FILE echo "Renaming..." TO_FILE=$COMMENTS_FILE @@ -70,7 +71,7 @@ _ak_modules_comments_create(){ fi } -_ak_modules_comments_index(){ +function _ak_modules_comments_index(){ FILES="$(ls -1 $ZCOMMENTSDIR)" i=0 for FILE in $FILES @@ -82,7 +83,7 @@ _ak_modules_comments_index(){ done } -_ak_modules_comments_add(){ +function _ak_modules_comments_add(){ TEMP="$(_ak_make_temp_directory)" cd $TEMP if [ -f "$ZCOMMENTSDIR/$1" ]; then diff --git a/modules/comments/version b/modules/comments/version new file mode 100644 index 0000000..5eb312c --- /dev/null +++ b/modules/comments/version @@ -0,0 +1 @@ +v0.0.0
\ No newline at end of file |