about summary refs log tree commit diff stats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--common/init10
1 files changed, 9 insertions, 1 deletions
diff --git a/common/init b/common/init
index 77071f9..7fdc1e6 100644
--- a/common/init
+++ b/common/init
@@ -83,7 +83,15 @@ prompt AUTHOR_EMAIL "The email of the author (or authors)" "$(git config --get u
 # cog change-log variables
 prompt REMOTE "The remote, this project will be pushed to" "git.vhack.eu"
 prompt REPOSITORY "The path of the repository on the remote" "$APPLICATION_NAME"
-prompt OWNER "The name of owner of the repository" "$AUTHOR_NAME"
+
+owner1="$(printf "%.1s" "$AUTHOR_NAME")"
+owner2="${AUTHOR_NAME#* }"
+if [ "$owner2" = "$AUTHOR_NAME" ]; then
+    owner_build="$(echo "$AUTHOR_NAME" | tr '[:upper:]' '[:lower:]')"
+else
+    owner_build="$(echo "$owner1$owner2" | tr '[:upper:]' '[:lower:]')"
+fi
+prompt OWNER "The name of owner of the repository" "$owner_build"
 
 # nice meta data
 prompt DESCRIPTION "The description of this project" ""