Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
14e1f0c6
Commit
14e1f0c6
authored
Aug 30, 2015
by
Robby Russell
Browse files
Merge pull request #4286 from RobinDaugherty/rand-quote-failure
Rand-quote plugin overflows stack when site is unreachable
parents
a228604e
96aefd2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/rand-quote/rand-quote.plugin.zsh
View file @
14e1f0c6
...
@@ -18,8 +18,6 @@ if [[ -x `which curl` ]]; then
...
@@ -18,8 +18,6 @@ if [[ -x `which curl` ]]; then
W
=
$(
echo
"
$Q
"
|
sed
-e
's/.*\/quotes\///g'
-e
's/<.*//g'
-e
's/.*">//g'
)
W
=
$(
echo
"
$Q
"
|
sed
-e
's/.*\/quotes\///g'
-e
's/<.*//g'
-e
's/.*">//g'
)
if
[
"
$W
"
-a
"
$TXT
"
]
;
then
if
[
"
$W
"
-a
"
$TXT
"
]
;
then
echo
"
${
WHO_COLOR
}${
W
}${
COLON_COLOR
}
:
${
TEXT_COLOR
}
“
${
TXT
}
”
${
END_COLOR
}
"
echo
"
${
WHO_COLOR
}${
W
}${
COLON_COLOR
}
:
${
TEXT_COLOR
}
“
${
TXT
}
”
${
END_COLOR
}
"
else
quote
fi
fi
}
}
#quote
#quote
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment