From: Nicolas Boisselier Date: Sun, 20 Jan 2019 14:31:31 +0000 (+0100) Subject: etc/profile.d/nb.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=8495ea7ccd628eb4c47cd827fa60f85f790f2fad;p=nb.git etc/profile.d/nb.sh --- diff --git a/etc/profile.d/nb.sh b/etc/profile.d/nb.sh index 7bc3ab00..d2f12fba 100644 --- a/etc/profile.d/nb.sh +++ b/etc/profile.d/nb.sh @@ -86,9 +86,9 @@ nb_api() { if [ -n "$NB_AUTH" -a x = x$(awk '/^machine api.nbdom.net / { print $4":"$6}' $HOME/.netrc 2> /dev/null) ]; then # NB 16.01.19 if [ -z "$NB_AUTH" -o x = x$(awk '/^machine api.nbdom.net / { print $4":"$6}' $HOME/.netrc 2> /dev/null) ]; then - echo curl -sfS -u "$NB_AUTH" "https://api.nbdom.net$uri" "$@" + curl -sfS -u "$NB_AUTH" "https://api.nbdom.net$uri" "$@" else - echo curl -sfS --netrc-optional "https://api.nbdom.net$uri" "$@" + curl -sfS --netrc-optional "https://api.nbdom.net$uri" "$@" fi }