~dricottone/my-utils

a98b020cb7ae0b7066ef4dc9ddded3d3e56c819f — Dominic Ricottone 4 days ago c18943f
Further minor changes
3 files changed, 11 insertions(+), 3 deletions(-)

A core/clean-dev
M documents/hugo-extract-timestamp
M documents/hugo-timestamp
A core/clean-dev => core/clean-dev +9 -0
@@ 0,0 1,9 @@
#!/bin/sh

_user="alarm"
_host="arch3.intra.dominic-ricottone.com"
echo "Connecting to ${_host}..."
ssh "${_user}@${_host}" -t 'rm -rf /var/deploy/web/development/*'

echo "https://dev.intra.dominic-ricottone.com is now clean"


M documents/hugo-extract-timestamp => documents/hugo-extract-timestamp +1 -1
@@ 32,7 32,7 @@ for filename in "${positional[@]}"; do
  # if filename does not contain timestamp
  elif ! /usr/bin/grep --quiet "$filename" --regexp="^date:"; then
    if [[ "$verbose" -eq 1 ]]; then
      debug_error_msg "No timestamp in '$filename'"
      debug_msg "No timestamp in '$filename'"
    fi
    /usr/bin/echo
    code=1

M documents/hugo-timestamp => documents/hugo-timestamp +1 -2
@@ 22,8 22,7 @@ fi

_ed_append_date() {
  ed -s "$1" <<EOF
/^title:
a
/^title:/a
date: "$2"
.
w