浏览代码

Merge pull request #4286 from RobinDaugherty/rand-quote-failure

Rand-quote plugin overflows stack when site is unreachable
Robby Russell 9 年之前
父节点
当前提交
14e1f0c6d8
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      plugins/rand-quote/rand-quote.plugin.zsh

+ 0 - 2
plugins/rand-quote/rand-quote.plugin.zsh

@@ -18,8 +18,6 @@ if [[ -x `which curl` ]]; then
         W=$(echo "$Q" | sed -e 's/.*\/quotes\///g' -e 's/<.*//g' -e 's/.*">//g')
         if [ "$W" -a "$TXT" ]; then
           echo "${WHO_COLOR}${W}${COLON_COLOR}: ${TEXT_COLOR}“${TXT}”${END_COLOR}"
-        else
-          quote
         fi
     }
     #quote