#16 Add abbreviation description for AGPLv3+

Closed
jorgesumle wants to merge 1 commits from jorgesumle/master into SylvieLorxu/master
2 changed files with 7 additions and 8 deletions
  1. 4 5
      .mkblog.sh
  2. 3 3
      README.md

+ 4 - 5
.mkblog.sh

@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU Affero General Public License as
@@ -326,8 +326,8 @@ helper_print_instruction() {
 
 # $1 = what kind of thing
 helper_prompt_overwrite() {
-    printf "This %s already exists. Overwrite? (y/N)\n" "$1"
-    read -r yn
+    read -N 1 -p "This $1 already exists. Overwrite? (y/N)" -r yn
+    echo
     case ${yn} in
         [Yy]* ) ;;
         * ) printf "No confirmation, quitting.\n"; exit;;
@@ -352,8 +352,7 @@ helper_export_into() {
 # $1 = prompt message
 # $2 = target variable
 helper_read_into() {
-    printf '%s: ' "$1"
-    read -r "$2"
+    read -erp "$1: " "$2"
 }
 
 # $1 = prompt message

+ 3 - 3
README.md

@@ -1,8 +1,8 @@
 # mkblog.sh
 
-mkblog.sh is a simple blogging system, written in sh. It allows you to write
-blog posts in Markdown and compile them into a nice HTML site with a single
-command.
+mkblog.sh is a simple blogging system, written in Bash. It allows you to
+write blog posts in Markdown and compile them into a nice HTML site with
+a single command.
 
 ## Usage