Skip to content

Instantly share code, notes, and snippets.

@bag-man bag-man/log
Last active Apr 10, 2019

Embed
What would you like to do?
nave debug log
+ '[' -z /bin/bash ']'
++ basename /bin/bash
+ shell=bash
+ case "$shell" in
+ shopt -s extglob
+ NODEDIST=https://nodejs.org/dist
+ NAVE_CACHE_DUR=86400
++ curl --version
++ head -n1
+ NAVEUA='nave/curl 7.64.1 (x86_64-pc-linux-gnu) libcurl/7.64.1 OpenSSL/1.1.1b zlib/1.2.11 libidn2/2.1.1 libpsl/0.20.2 (+libidn2/2.1.1) libssh2/1.8.1 nghttp2/1.36.0'
++ uname -a
+ uname='Linux owen-advinans 4.14.74-1-MANJARO #1 SMP PREEMPT Fri Oct 5 14:16:52 UTC 2018 x86_64 GNU/Linux'
+ os=
+ arch=
+ case "$uname" in
+ os=linux
+ case "$uname" in
+ arch=x64
+ tar=tar
+ main use 10
+ local SELF_PATH DIR SYM
+ SELF_PATH=./node_modules/.bin/nave
+ '[' . '!=' . ']'
+++ dirname -- ./node_modules/.bin/nave
++ cd -P -- ./node_modules/.bin
++ pwd -P
+ SELF_PATH=/home/owg1/test/node_modules/.bin
++ basename -- ./node_modules/.bin/nave
+ SELF_PATH=/home/owg1/test/node_modules/.bin/nave
+ '[' -h /home/owg1/test/node_modules/.bin/nave ']'
++ dirname -- /home/owg1/test/node_modules/.bin/nave
+ DIR=/home/owg1/test/node_modules/.bin
++ readlink -- /home/owg1/test/node_modules/.bin/nave
+ SYM=../nave/nave.sh
++ cd -- /home/owg1/test/node_modules/.bin
+++ dirname -- ../nave/nave.sh
++ cd -- ../nave
++ pwd
++ basename -- ../nave/nave.sh
+ SELF_PATH=/home/owg1/test/node_modules/nave/nave.sh
+ '[' -h /home/owg1/test/node_modules/nave/nave.sh ']'
+ '[' -z defined ']'
+ '[' -d /home/owg1/.nave ']'
+ local rcversion=#3
+ local rcfile=/home/owg1/.nave/.zshenv
+ '[' -f /home/owg1/.nave/.zshenv ']'
++ head -n1 /home/owg1/.nave/.zshenv
+ '[' '#3' '!=' '#3' ']'
+ '[' -f /home/owg1/.nave/.zshenv ']'
++ head -n1 /home/owg1/.nave/.zshenv
+ '[' '#3' '!=' '#3' ']'
+ export NAVE_DIR
+ export NAVE_SRC=/home/owg1/.nave/src
+ NAVE_SRC=/home/owg1/.nave/src
+ export NAVE_ROOT=/home/owg1/.nave/installed
+ NAVE_ROOT=/home/owg1/.nave/installed
+ ensure_dir /home/owg1/.nave/src
+ '[' -d /home/owg1/.nave/src ']'
+ ensure_dir /home/owg1/.nave/installed
+ '[' -d /home/owg1/.nave/installed ']'
+ local cmd=use
+ shift
+ case $cmd in
+ cmd=nave_use
+ nave_use 10
++ ver 10
++ local version=10
++ local nonames=
++ version=10
++ case $version in
++ nave_version_family '10\.[0-9]+'
++ local 'family=10\.[0-9]+'
++ family='10\.[0-9]+'
++ get /
++ local path=/
++ egrep -o '10\.[0-9]+\.[0-9]+'
++ sort -u -k 1,1n -k 2,2n -k 3,3n -t .
++ tail -n1
+++ basename /
++ local base=/
+++ dirname /
++ local dir=/
++ shift
++ case "$base" in
++ get_html /
++ local path=/
+++ basename /
++ local base=/
+++ dirname /
++ local dir=/
++ shift
++ '[' / = / ']'
++ dir=
++ '[' / = / ']'
++ base=
++ '[' '' = '' ']'
++ base=index.html
++ local cache=/home/owg1/.nave/cache/
++ ensure_dir /home/owg1/.nave/cache/
++ '[' -d /home/owg1/.nave/cache/ ']'
++ local tsfile=/home/owg1/.nave/cache//index.html-timestamp
++ local dur=86400
++ '[' /home/owg1/.nave/cache//index.html = /home/owg1/.nave/cache//index.html ']'
++ '[' -f /home/owg1/.nave/cache//index.html-timestamp ']'
++ '[' -f /home/owg1/.nave/cache//index.html ']'
+++ date +%s
+++ cat /home/owg1/.nave/cache//index.html-timestamp
./node_modules/.bin/nave: line 286: 1554887870 - : syntax error: operand expected (error token is "- ")
+ local version=
+ case "$version" in
+ nave_named 10
+ local name=10
+ shift
++ ver '' NONAMES
++ local version=
++ local nonames=NONAMES
++ version=
++ case $version in
++ '[' NONAMES = '' ']'
+ local version=
+ '[' '' '!=' '' ']'
+ add_named_env 10 ''
+ local name=10
+ local version=
+++ /home/owg1/.nave/installed/10/bin/node -v
++ ver '' NONAMES
++ local version=
++ local nonames=NONAMES
++ version=
++ case $version in
++ '[' NONAMES = '' ']'
+ local cur=
+ '[' '' '!=' '' ']'
+ version=
+ '[' '' = '' ']'
+ echo 'What version of node?'
What version of node?
+ read -p 'lts, lts/<name>, latest, x.y, or x.y.z > ' version
lts, lts/<name>, latest, x.y, or x.y.z > ++ ver 10
++ local version=10
++ local nonames=
++ version=10
++ case $version in
++ nave_version_family '10\.[0-9]+'
++ local 'family=10\.[0-9]+'
++ family='10\.[0-9]+'
++ get /
++ local path=/
++ egrep -o '10\.[0-9]+\.[0-9]+'
++ sort -u -k 1,1n -k 2,2n -k 3,3n -t .
++ tail -n1
+++ basename /
++ local base=/
+++ dirname /
++ local dir=/
++ shift
++ case "$base" in
++ get_html /
++ local path=/
+++ basename /
++ local base=/
+++ dirname /
++ local dir=/
++ shift
++ '[' / = / ']'
++ dir=
++ '[' / = / ']'
++ base=
++ '[' '' = '' ']'
++ base=index.html
++ local cache=/home/owg1/.nave/cache/
++ ensure_dir /home/owg1/.nave/cache/
++ '[' -d /home/owg1/.nave/cache/ ']'
++ local tsfile=/home/owg1/.nave/cache//index.html-timestamp
++ local dur=86400
++ '[' /home/owg1/.nave/cache//index.html = /home/owg1/.nave/cache//index.html ']'
++ '[' -f /home/owg1/.nave/cache//index.html-timestamp ']'
++ '[' -f /home/owg1/.nave/cache//index.html ']'
+++ date +%s
+++ cat /home/owg1/.nave/cache//index.html-timestamp
./node_modules/.bin/nave: line 286: 1554887872 - : syntax error: operand expected (error token is "- ")
+ version=
+ '[' '' = '' ']'
+ return 0
+ '[' 10 == 10 ']'
+ '[' '' == '' ']'
+ '[' 0 -gt 0 ']'
+ return 0
+ return 0
+ exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.