-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
User
committed
Sep 19, 2017
1 parent
5afcffc
commit 8238a38
Showing
3 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
function green_echo() { | ||
echo -e "\033[32m$1\033[0m" | ||
} | ||
|
||
function red_echo() { | ||
echo -e "\033[31m$1\033[0m" | ||
} | ||
|
||
# Verify that the script is launched from the right place | ||
if [ ! "${PWD##*/}" = "website" ]; then | ||
red_echo "You have to launch this script from repo root folder" | ||
exit 1 | ||
fi | ||
|
||
ln -s ./${PWD##*/}/index.html ../index.html | ||
|
||
for D in `find . -maxdepth 1 -type d | grep -v "/\." | grep "./"` | ||
do | ||
ln -s ./${PWD##*/}/$D ../$D | ||
done |