1
0
mirror of https://github.com/Mayccoll/Gogh.git synced 2023-08-10 21:12:46 +03:00

Fix typos

This commit is contained in:
mquintero 2017-12-27 11:59:05 -05:00
parent ca5c0146e2
commit 3b6c20478b

17
gogh.sh
View File

@ -167,14 +167,14 @@ declare -a THEMES=(
)
capitalize() {
local ARGUMENT=$1
local RES=""
local STR=""
local RES_NO_TRAIL_SPACE=""
local string=$1
for char in $string
for CHAR in $ARGUMENT
do
STR=$(echo "${char:0:1}" | tr "[:lower:]" "[:upper:]")"${char:1} "
STR=$(echo "${CHAR:0:1}" | tr "[:lower:]" "[:upper:]")"${CHAR:1} "
RES="${RES}${STR}"
RES_NO_TRAIL_SPACE="$(echo -e "${RES}" | sed -e 's/[[:space:]]*$//')"
done
@ -182,11 +182,11 @@ capitalize (){
echo "${RES_NO_TRAIL_SPACE}"
}
function curlsource() {
f=$(mktemp -t curlsource)
curl -o "$f" -s -L "$1"
source "$f"
rm -f "$f"
curlsource() {
local F=$(mktemp -t curlsource)
curl -o "$F" -s -L "$1"
source "$F"
rm -f "$F"
}
set_gogh() {
@ -202,7 +202,6 @@ set_gogh () {
export {PROFILE_NAME,PROFILE_SLUG}="$result" && curlsource "${url}"
else
export {PROFILE_NAME,PROFILE_SLUG}="$result" && source <(wget -O - "${url}")
echo "$result"
fi
}