1 Star 2 Fork 0

Git工具集 / git-extras

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
install.sh 520 Bytes
一键复制 编辑 原始数据 按行查看 历史
Paul Wise 提交于 2019-09-04 20:36 . Switch from using /tmp to using mktemp
#!/usr/bin/env bash
make_install() {
if [ -n "$PREFIX" ]
then
PREFIX="$PREFIX" make install
else
sudo make install
fi
}
dir=$(mktemp -t -d git-extras-install.XXXXXXXXXX) \
&& cd "$dir" \
&& echo "Setting up 'git-extras'...." \
&& git clone https://github.com/tj/git-extras.git &> /dev/null \
&& cd git-extras \
&& git checkout \
$(git describe --tags $(git rev-list --tags --max-count=1)) \
&> /dev/null \
&& make_install \
&& rm -rf "$dir"
Shell
1
https://gitee.com/vcs-all-in-one/git-extras.git
git@gitee.com:vcs-all-in-one/git-extras.git
vcs-all-in-one
git-extras
git-extras
master

搜索帮助