From a98b020cb7ae0b7066ef4dc9ddded3d3e56c819f Mon Sep 17 00:00:00 2001 From: Dominic Ricottone Date: Fri, 20 Dec 2024 17:26:46 +0000 Subject: [PATCH] Further minor changes --- core/clean-dev | 9 +++++++++ documents/hugo-extract-timestamp | 2 +- documents/hugo-timestamp | 3 +-- 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100755 core/clean-dev diff --git a/core/clean-dev b/core/clean-dev new file mode 100755 index 0000000..18f0be2 --- /dev/null +++ b/core/clean-dev @@ -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" + diff --git a/documents/hugo-extract-timestamp b/documents/hugo-extract-timestamp index 0258f64..0370244 100755 --- a/documents/hugo-extract-timestamp +++ b/documents/hugo-extract-timestamp @@ -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 diff --git a/documents/hugo-timestamp b/documents/hugo-timestamp index 7f5e901..9042a74 100755 --- a/documents/hugo-timestamp +++ b/documents/hugo-timestamp @@ -22,8 +22,7 @@ fi _ed_append_date() { ed -s "$1" <