modified create command to ensure a prompt for the project description is displayed
authordanix <danix@danix.xyz>
Tue, 18 Dec 2018 14:18:28 +0000 (15:18 +0100)
committerdanix <danix@danix.xyz>
Tue, 18 Dec 2018 14:18:28 +0000 (15:18 +0100)
create

diff --git a/create b/create
index 04d299a8b4c0195f06cccfcf4ce45ded698db907..f3fa041f814553f1f663bca568b545026373ee21 100755 (executable)
--- a/create
+++ b/create
@@ -23,7 +23,8 @@ function is_bare() {
 function git_init() {
        PROJECT=$1
        echo "creating project \"${PROJECT}.git\""
-       read -p "Describe your project in one line: " DESCRIPTION
+       echo -n "Describe your project in one line: "
+       read DESCRIPTION
        if [ ! -d ${GITDIR}/${PROJECT}.git ]; then
                mkdir ${GITDIR}/${PROJECT}.git
        fi