Skip to content

Commit

Permalink
Renamed profile to profile.example
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Duarte committed Mar 13, 2019
1 parent 58870e8 commit 98cd62b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions create.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

#Read profile data
. ~/profile
. profile
echo "Profile:"
echo "$fullname"
echo "$id"
Expand All @@ -12,8 +12,7 @@ echo "====================="
echo "Please enter a name for the new content"
echo "e.g. Hello World Tutorial"
read name
content=$(echo "$name" | tr '[:upper:]' '[:lower:]')
content=$(echo "${content// /-}")
content=$(echo "$name" | tr '[:upper:]' '[:lower:]' | tr " " -)
echo "Alright, creating content for $content.."

#Create Git branch
Expand Down Expand Up @@ -52,4 +51,4 @@ echo "IMPORTANT: Update topics value in tutorials/$content/article.properties"
echo "======================"

# Open editor
code "tutorials/$content/" "tutorials/$content/content.adoc"
code "tutorials/$content/" "tutorials/$content/content.adoc"
File renamed without changes.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ There is an automated contribution script `create.sh` that can create the branch

To use the script, follow these instructions:

1. Copy the `profile` file to your home directory:
1. Create a new `profile` file based on the `profile.example` file:

```sh
cp profile ~
cp profile.example profile
```

2. Modify the `profile` file in your home directory with your details, e.g.:
Expand Down

0 comments on commit 98cd62b

Please sign in to comment.