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 }