From bdc635b17ff4396d7427626f2d08ba8d9ba5403e Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Sun, 24 Apr 2016 01:55:38 +0900 Subject: [PATCH] Drop risky exec fish < /dev/tty for ``npm i fisherman`` in favor of displaying a message and ask the user to reload their shell. --- fisher.fish | 2 +- package.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fisher.fish b/fisher.fish index 430f1d1..9aab9fb 100644 --- a/fisher.fish +++ b/fisher.fish @@ -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 diff --git a/package.json b/package.json index 5f17517..a23c19c 100644 --- a/package.json +++ b/package.json @@ -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",