From 33d95559942557870236aff02ae5bce30e7742f2 Mon Sep 17 00:00:00 2001 From: mquintero Date: Fri, 19 May 2017 16:55:07 -0500 Subject: [PATCH] fix typos and profile names --- script/gogh-with-profile.sh | 6 +++++- script/gogh.sh | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/script/gogh-with-profile.sh b/script/gogh-with-profile.sh index 7daf0d3..9d7e0a1 100755 --- a/script/gogh-with-profile.sh +++ b/script/gogh-with-profile.sh @@ -2,7 +2,11 @@ function set_gogh () { - export {PROFILE_NAME,PROFILE_SLUG}=$1 && wget -O gogh https://raw.githubusercontent.com/Mayccoll/Gogh/master/themes/$1 && chmod +x gogh && ./gogh && rm gogh + string=$1 + string_r="${string%???}" + string_s=${string_r//\./_} + result="${string_s^}" + export {PROFILE_NAME,PROFILE_SLUG}=$result && wget -O gogh https://raw.githubusercontent.com/Mayccoll/Gogh/master/themes/$1 && chmod +x gogh && ./gogh && rm gogh } echo -e " diff --git a/script/gogh.sh b/script/gogh.sh index 92f58b4..2b8a20b 100755 --- a/script/gogh.sh +++ b/script/gogh.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash -function set_gogh () { +function set_gogh () { wget -O gogh https://raw.githubusercontent.com/Mayccoll/Gogh/master/themes/$1 && chmod +x gogh && ./gogh && rm gogh }