#!/bin/sh
set -eux
MILESTONE_POST="content/pages/milestones/m${1}.md"
if [ ! -e "${MILESTONE_POST}" ]
then
echo "Milestone not found."
exit 1
fi
EDITOR="${EDITOR:-gvim}"
$EDITOR "${MILESTONE_POST}"