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 => +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