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 e59dc3e8d0
commit 972fcbffbb
2 changed files with 4 additions and 4 deletions

View File

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

View File

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