File tree 1 file changed +25
-2
lines changed
1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
+ #
3
+ # Copyright (c) 2015
4
+ # Author: Victor Arribas <[email protected] >
5
+ # License: GPLv3 <http://www.gnu.org/licenses/gpl-3.0.html>
6
+ #
7
+ # Usage: ./install.sh [-f] [-bin]
8
+
9
+
10
+ for arg in " $@ " ; do
11
+ case $arg in
12
+ ' -f' )
13
+ force_install=$arg
14
+ ;;
15
+ ' -bin' )
16
+ install_bin=$arg
17
+ ;;
18
+ esac
19
+ done
2
20
3
21
4
22
link_file (){
@@ -21,7 +39,6 @@ if [ $? -eq 0 ]; then
21
39
fi
22
40
}
23
41
24
- force_install=$1
25
42
26
43
# install gitconfig
27
44
name=.gitconfig
@@ -32,7 +49,11 @@ name=.gitignore_global
32
49
link_file $name $force_install
33
50
git config --global core.excludesfile \~ /$name
34
51
35
- # add git extensions to PATH
52
+
53
+ # add git extensions
54
+ if test -n " $install_bin " ; then
55
+ echo " installing git-extensions (PATH injection)"
56
+
36
57
declare_path (){
37
58
echo " "
38
59
echo " "
@@ -46,3 +67,5 @@ elif test -e $HOME/.bashrc; then
46
67
else
47
68
echo " git-extensions could not be installed" >&2
48
69
fi
70
+
71
+ fi # install_bin
You can’t perform that action at this time.
0 commit comments