Drop risky exec fish < /dev/tty for `npm i fisherman`

in favor of displaying a message and ask the user to
reload their shell.
This commit is contained in:
Jorge Bucaran 2016-04-24 01:55:38 +09:00
parent 8ff984106c
commit bdc635b17f
No known key found for this signature in database
GPG key ID: E54BA3C0E646DB30
2 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
function fisher function fisher
set -g fisher_version "2.1.4" set -g fisher_version "2.1.6"
set -g fisher_spinners ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ set -g fisher_spinners ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏
function __fisher_show_spinner function __fisher_show_spinner

View file

@ -1,7 +1,7 @@
{ {
"name": "fisherman", "name": "fisherman",
"description": "fish plugin manager", "description": "fish plugin manager",
"version": "2.1.5", "version": "2.1.6",
"author": "Jorge Bucaran", "author": "Jorge Bucaran",
"homepage": "https://github.com/fisherman/fisherman", "homepage": "https://github.com/fisherman/fisherman",
"bugs": "https://github.com/fisherman/fisherman/issues", "bugs": "https://github.com/fisherman/fisherman/issues",
@ -15,8 +15,8 @@
"package manager" "package manager"
], ],
"scripts": { "scripts": {
"preinstall": "i=\"$XDG_CONFIG_HOME\"; [ -z \"$i\" ] && i=~/.config; i=\"$i/fish/functions\"; cp -f fisher.fish \"$i/fisher.fish\"; exec fish < /dev/tty", "postinstall": "i=\"$XDG_CONFIG_HOME\"; [ -z \"$i\" ] && i=~/.config; i=\"$i/fish/functions\"; cp -f fisher.fish \"$i/fisher.fish\"; echo '\\033[47m\\033[30mPlease reload your shell to start using fisherman.\\033[0m'",
"preuninstall": "i=\"$XDG_CONFIG_HOME\"; [ -z \"$i\" ] && i=~/.config; i=\"$i/fish/functions\"; rm -f \"$i/fisher.fish\"; exec fish < /dev/tty" "preuninstall": "i=\"$XDG_CONFIG_HOME\"; [ -z \"$i\" ] && i=~/.config; i=\"$i/fish/functions\"; rm -f \"$i/fisher.fish\"; echo '\\033[47m\\033[30mPlease reload your shell to start using fisherman.\\033[0m'"
}, },
"repository": { "repository": {
"type": "git", "type": "git",