From 8495ea7ccd628eb4c47cd827fa60f85f790f2fad Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Sun, 20 Jan 2019 15:31:31 +0100 Subject: [PATCH] etc/profile.d/nb.sh --- etc/profile.d/nb.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } -- 2.47.3