mirror of
https://github.com/Mayccoll/Gogh.git
synced 2023-08-10 21:12:46 +03:00
Update gogh.sh
This commit is contained in:
parent
f4f280d78c
commit
edd964b496
11
gogh.sh
11
gogh.sh
@ -201,14 +201,6 @@ capitalize() {
|
||||
echo "${RES_NO_TRAIL_SPACE}"
|
||||
}
|
||||
|
||||
curlsource() {
|
||||
local F
|
||||
F=$(mktemp -t curlsource)
|
||||
curl -o "$F" -s -L "$1"
|
||||
source "$F"
|
||||
rm -f "$F"
|
||||
}
|
||||
|
||||
set_gogh() {
|
||||
string=$1
|
||||
string_r="${string%???}"
|
||||
@ -225,8 +217,7 @@ set_gogh() {
|
||||
else
|
||||
if [ "$(uname)" = "Darwin" ]; then
|
||||
# OSX ships with curl
|
||||
# Note: sourcing directly from curl does not work
|
||||
curlsource "${url}"
|
||||
bash -c eval "$(curl -Lo- "${url}")"
|
||||
else
|
||||
bash <(wget -O- "${url}")
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user