mirror of
https://github.com/Mayccoll/Gogh.git
synced 2023-08-10 21:12:46 +03:00
Now the themes will be in yml format, these will be the source of truth and everything will be generated from them.
This commit is contained in:
parent
0cf0a74757
commit
2df4586ed8
6
gogh.sh
6
gogh.sh
@ -284,14 +284,14 @@ set_gogh() {
|
||||
string_r="${string%???}"
|
||||
string_s=${string_r//\./_}
|
||||
result=$(capitalize "${string_s}")
|
||||
url="${BASE_URL}/themes/$1"
|
||||
url="${BASE_URL}/installs/$1"
|
||||
|
||||
export {PROFILE_NAME,PROFILE_SLUG}="$result"
|
||||
|
||||
# Evaluate if Gogh was called from local source - i.e cloned repo
|
||||
SCRIPT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
if [[ -e "${SCRIPT_PATH}/themes/$1" ]]; then
|
||||
bash "${SCRIPT_PATH}/themes/$1"
|
||||
if [[ -e "${SCRIPT_PATH}/installs/$1" ]]; then
|
||||
bash "${SCRIPT_PATH}/installs/$1"
|
||||
else
|
||||
if [[ "$(uname)" = "Darwin" ]]; then
|
||||
# OSX ships with curl
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user