acoeur/bin/_commands/delete.sh

10 lines
100 B
Bash
Executable File

#!/bin/sh
dir=$1 file=$2
page=${file%.delete}
echo "Deleting $page"
rm -rf "${dir:?}/${page:?}"