We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4282b50 commit 8cec4f4Copy full SHA for 8cec4f4
install
@@ -0,0 +1,25 @@
1
+#!/bin/bash
2
+
3
+################################################################################
4
+# installs (or upgrades) doshie in a git-based software project
5
6
7
+set -e
8
9
+# precondition: we're at the root of a git project
10
+if ! ( [[ -d .git ]] && git rev-parse --is-inside-work-tree >/dev/null ); then
11
+ echo "this is not the root of a git project" >&2
12
+ exit 1
13
+fi
14
15
+# add the submodule
16
+if [[ ! -d .doshie ]]; then
17
+ git submodule add https://github.com/andyichr/doshie.git .doshie
18
19
20
+# copy shell bin
21
+cp -f .doshie/shell ./
22
23
+# update doshie
24
+cd .doshie
25
+git pull
0 commit comments