diff options
Diffstat (limited to 'network')
-rw-r--r-- | network/iojs/iojs.SlackBuild | 2 | ||||
-rw-r--r-- | network/iojs/iojs.info | 6 | ||||
-rw-r--r-- | network/iojs/npm.sh | 17 |
3 files changed, 15 insertions, 10 deletions
diff --git a/network/iojs/iojs.SlackBuild b/network/iojs/iojs.SlackBuild index d7afe24818..c534715df6 100644 --- a/network/iojs/iojs.SlackBuild +++ b/network/iojs/iojs.SlackBuild @@ -25,7 +25,7 @@ # not, see <http://www.gnu.org/licenses/>. PRGNAM=iojs -VERSION=${VERSION:-3.0.0} +VERSION=${VERSION:-3.1.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} diff --git a/network/iojs/iojs.info b/network/iojs/iojs.info index 7155808d2b..b685f4a342 100644 --- a/network/iojs/iojs.info +++ b/network/iojs/iojs.info @@ -1,8 +1,8 @@ PRGNAM="iojs" -VERSION="3.0.0" +VERSION="3.1.0" HOMEPAGE="https://iojs.org/" -DOWNLOAD="https://iojs.org/dist/v3.0.0/iojs-v3.0.0.tar.xz" -MD5SUM="07814de7acf29bf1d2cf84a1b247ce1b" +DOWNLOAD="https://iojs.org/dist/v3.1.0/iojs-v3.1.0.tar.xz" +MD5SUM="0bd4a7724ee2177a619b502bf38086e2" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/network/iojs/npm.sh b/network/iojs/npm.sh index 3c7a3590d8..c0a293c917 100644 --- a/network/iojs/npm.sh +++ b/network/iojs/npm.sh @@ -7,17 +7,21 @@ # Or, maybe: npm completion > /usr/local/etc/bash_completion.d/npm # -COMP_WORDBREAKS=${COMP_WORDBREAKS/=/} -COMP_WORDBREAKS=${COMP_WORDBREAKS/@/} -export COMP_WORDBREAKS - if type complete &>/dev/null; then _npm_completion () { + local words cword + if type _get_comp_words_by_ref &>/dev/null; then + _get_comp_words_by_ref -n = -n @ -w words -i cword + else + cword="$COMP_CWORD" + words=("${COMP_WORDS[@]}") + fi + local si="$IFS" - IFS=$'\n' COMPREPLY=($(COMP_CWORD="$COMP_CWORD" \ + IFS=$'\n' COMPREPLY=($(COMP_CWORD="$cword" \ COMP_LINE="$COMP_LINE" \ COMP_POINT="$COMP_POINT" \ - npm completion -- "${COMP_WORDS[@]}" \ + npm completion -- "${words[@]}" \ 2>/dev/null)) || return $? IFS="$si" } @@ -52,3 +56,4 @@ elif type compctl &>/dev/null; then compctl -K _npm_completion npm fi ###-end-npm-completion-### + |