mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-22 15:35:43 +08:00
install_fish: Use strip on binary fish...
Cache from 7.51MB to 1.63MB
This commit is contained in:
parent
250fe263ef
commit
a7d6376616
|
@ -1,10 +1,12 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
BINDIR=$HOME/fish/bin
|
||||
# check to see if fish bin doesn't exist
|
||||
if [ ! -x "$HOME/fish/bin/fish" ]; then
|
||||
if [ ! -x "$BINDIR/fish" ]; then
|
||||
cd /tmp
|
||||
wget -O - https://github.com/fish-shell/fish-shell/releases/download/2.2.0/fish-2.2.0.tar.gz | tar xzv
|
||||
cd fish-2.2.0 && ./configure --prefix=$HOME/fish && make -j2 && make install;
|
||||
strip $BINDIR/fish $BINDIR/fish_indent $BINDIR/mimedb
|
||||
else
|
||||
echo 'Using cached directory.';
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user