Skip to content

Commit 0949741

Browse files
fixes
1 parent e5dc551 commit 0949741

File tree

6 files changed

+34
-9
lines changed

6 files changed

+34
-9
lines changed

.npmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
//registry.npmjs.org/:_authToken=${SEC_NPM_AUTH_TOKEN}
1+
//registry.npmjs.org/:_authToken=

common/load.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ function dot_load_tools() {
3939
# load tools
4040
for filename in ${DOT_FILES_PATH}/tools/*.sh; do
4141
source "${filename}"
42-
done
42+
done
4343
}

rc/functions.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ function dot_ensure_key() {
4848
fi
4949

5050
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
5455
fi
5556
}
5657

tools/go.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
}

tools/node.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
export NVM_DIR="$HOME/.nvm"
23
if [ -d ${NVM_DIR} ]; then
34
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"

tools/ruby.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11

2-
[ ! $(which rbenv) ] || {
2+
if [ -x "$(command -v rbenv)" ]; then
33
eval "$(rbenv init -)"
4-
}
4+
fi
55

66
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
913

1014
# curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash
1115
[ ! $(which rails) ] || {

0 commit comments

Comments
 (0)