File tree Expand file tree Collapse file tree 6 files changed +34
-9
lines changed Expand file tree Collapse file tree 6 files changed +34
-9
lines changed Original file line number Diff line number Diff line change 1
- //registry.npmjs.org/:_authToken = ${ SEC_NPM_AUTH_TOKEN }
1
+ //registry.npmjs.org/:_authToken =
Original file line number Diff line number Diff line change @@ -39,5 +39,5 @@ function dot_load_tools() {
39
39
# load tools
40
40
for filename in ${DOT_FILES_PATH} /tools/* .sh; do
41
41
source " ${filename} "
42
- done
42
+ done
43
43
}
Original file line number Diff line number Diff line change @@ -48,9 +48,10 @@ function dot_ensure_key() {
48
48
fi
49
49
50
50
if [ ! -f " ${DOT_KEY_PATH} " ]; then
51
- echo " ${DOT_KEY_PATH} does not exist. creating. make sure you backup and save"
52
- mkdir -p " ${DOT_CFG_PATH} "
53
- openssl genrsa -out " ${DOT_KEY_PATH} " 2048
51
+ echo " ${DOT_KEY_PATH} does not exist. see instructions in dotprivate/secrets"
52
+ # echo "${DOT_KEY_PATH} does not exist. creating. make sure you backup and save"
53
+ # mkdir -p "${DOT_CFG_PATH}"
54
+ # openssl genrsa -out "${DOT_KEY_PATH}" 2048
54
55
fi
55
56
}
56
57
Original file line number Diff line number Diff line change
1
+ go_path=" /usr/local/go/bin"
2
+ go_in_path=` which go`
3
+
4
+ if [ -f ${go_path} ]; then
5
+ echo go installed ...
6
+
7
+ if ! [ -f ${go_in_path} ]; then
8
+ echo found ${go_in_path}
9
+ else
10
+ echo " Adding go to PATH"
11
+ export PATH=$PATH :${go_path}
12
+ fi
13
+ fi
14
+
15
+ function dot_go_version() {
16
+ if [ -f ${go_in_path} ]; then
17
+ printToolInfo ' go' $( go version)
18
+ fi
19
+ }
Original file line number Diff line number Diff line change
1
+
1
2
export NVM_DIR=" $HOME /.nvm"
2
3
if [ -d ${NVM_DIR} ]; then
3
4
[ -s " $NVM_DIR /nvm.sh" ] && . " $NVM_DIR /nvm.sh"
Original file line number Diff line number Diff line change 1
1
2
- [ ! $( which rbenv) ] || {
2
+ if [ -x " $( command -v rbenv) " ] ; then
3
3
eval " $( rbenv init -) "
4
- }
4
+ fi
5
5
6
6
function dot_ruby_version() {
7
- printToolInfo ' rbenv' $( rbenv version)
8
- printToolInfo ' ruby' $( ruby --version)
7
+ if [ -x " $( command -v rbenv) " ]; then
8
+ printToolInfo ' rbenv' $( rbenv version)
9
+ fi
10
+ if [ -x " $( command -v ruby) " ]; then
11
+ printToolInfo ' ruby' " $( ruby --version) "
12
+ fi
9
13
10
14
# curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash
11
15
[ ! $( which rails) ] || {
You can’t perform that action at this time.
0 commit comments