diff options
-rwxr-xr-x | publish | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -0,0 +1,7 @@ +#! /usr/bin/bash +if [ -f "$1" ] +then + published_name=`date -I'date'`-`basename $1` + echo "Publishing as $published_name" + mv "$1" "blog/_i18n/nb/_posts/$published_name" +fi |