Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
Signed-off-by: Sanket Teli <[email protected]>
  • Loading branch information
Sanket-0510 committed Sep 10, 2024
1 parent b7fe9f4 commit d8d00bf
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 90 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2526,21 +2526,6 @@ chaincodeBuild() {
fi
if [ "$CHAINCODE_LANG" = "node" ]; then
if [ "$(command -v nvm)" != "nvm" ] && [ -f ~/.nvm/nvm.sh ]; then
# note: \`source ~/.nvm/nvm.sh || true\` seems to not work on some shells (like /bin/zsh on Apple Silicon)
set +e
source ~/.nvm/nvm.sh
set -e
if [ "$(command -v nvm)" == "nvm" ]; then
current_dir="$(pwd)"
cd "$CHAINCODE_DIR_PATH"
set +u
nvm install
set -u
cd "$current_dir"
fi
fi
NODE_VERSION=$(node --version)
fabric_shim_version=$(jq -r '.dependencies."fabric-shim"' "$CHAINCODE_DIR_PATH/package.json")
RECOMMENDED_NODE_VERSION=$(node_version_check "$fabric_shim_version")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2390,21 +2390,6 @@ chaincodeBuild() {
fi
if [ "$CHAINCODE_LANG" = "node" ]; then
if [ "$(command -v nvm)" != "nvm" ] && [ -f ~/.nvm/nvm.sh ]; then
# note: \`source ~/.nvm/nvm.sh || true\` seems to not work on some shells (like /bin/zsh on Apple Silicon)
set +e
source ~/.nvm/nvm.sh
set -e
if [ "$(command -v nvm)" == "nvm" ]; then
current_dir="$(pwd)"
cd "$CHAINCODE_DIR_PATH"
set +u
nvm install
set -u
cd "$current_dir"
fi
fi
NODE_VERSION=$(node --version)
fabric_shim_version=$(jq -r '.dependencies."fabric-shim"' "$CHAINCODE_DIR_PATH/package.json")
RECOMMENDED_NODE_VERSION=$(node_version_check "$fabric_shim_version")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3316,21 +3316,6 @@ chaincodeBuild() {
fi
if [ "$CHAINCODE_LANG" = "node" ]; then
if [ "$(command -v nvm)" != "nvm" ] && [ -f ~/.nvm/nvm.sh ]; then
# note: \`source ~/.nvm/nvm.sh || true\` seems to not work on some shells (like /bin/zsh on Apple Silicon)
set +e
source ~/.nvm/nvm.sh
set -e
if [ "$(command -v nvm)" == "nvm" ]; then
current_dir="$(pwd)"
cd "$CHAINCODE_DIR_PATH"
set +u
nvm install
set -u
cd "$current_dir"
fi
fi
NODE_VERSION=$(node --version)
fabric_shim_version=$(jq -r '.dependencies."fabric-shim"' "$CHAINCODE_DIR_PATH/package.json")
RECOMMENDED_NODE_VERSION=$(node_version_check "$fabric_shim_version")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4723,21 +4723,6 @@ chaincodeBuild() {
fi
if [ "$CHAINCODE_LANG" = "node" ]; then
if [ "$(command -v nvm)" != "nvm" ] && [ -f ~/.nvm/nvm.sh ]; then
# note: \`source ~/.nvm/nvm.sh || true\` seems to not work on some shells (like /bin/zsh on Apple Silicon)
set +e
source ~/.nvm/nvm.sh
set -e
if [ "$(command -v nvm)" == "nvm" ]; then
current_dir="$(pwd)"
cd "$CHAINCODE_DIR_PATH"
set +u
nvm install
set -u
cd "$current_dir"
fi
fi
NODE_VERSION=$(node --version)
fabric_shim_version=$(jq -r '.dependencies."fabric-shim"' "$CHAINCODE_DIR_PATH/package.json")
RECOMMENDED_NODE_VERSION=$(node_version_check "$fabric_shim_version")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5230,21 +5230,6 @@ chaincodeBuild() {
fi
if [ "$CHAINCODE_LANG" = "node" ]; then
if [ "$(command -v nvm)" != "nvm" ] && [ -f ~/.nvm/nvm.sh ]; then
# note: \`source ~/.nvm/nvm.sh || true\` seems to not work on some shells (like /bin/zsh on Apple Silicon)
set +e
source ~/.nvm/nvm.sh
set -e
if [ "$(command -v nvm)" == "nvm" ]; then
current_dir="$(pwd)"
cd "$CHAINCODE_DIR_PATH"
set +u
nvm install
set -u
cd "$current_dir"
fi
fi
NODE_VERSION=$(node --version)
fabric_shim_version=$(jq -r '.dependencies."fabric-shim"' "$CHAINCODE_DIR_PATH/package.json")
RECOMMENDED_NODE_VERSION=$(node_version_check "$fabric_shim_version")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,6 @@ chaincodeBuild() {
fi

if [ "$CHAINCODE_LANG" = "node" ]; then
if [ "$(command -v nvm)" != "nvm" ] && [ -f ~/.nvm/nvm.sh ]; then
# note: `source ~/.nvm/nvm.sh || true` seems to not work on some shells (like /bin/zsh on Apple Silicon)
set +e
source ~/.nvm/nvm.sh
set -e
if [ "$(command -v nvm)" == "nvm" ]; then
current_dir="$(pwd)"
cd "$CHAINCODE_DIR_PATH"
set +u
nvm install
set -u
cd "$current_dir"
fi
fi

NODE_VERSION=$(node --version)
fabric_shim_version=$(jq -r '.dependencies."fabric-shim"' "$CHAINCODE_DIR_PATH/package.json")
RECOMMENDED_NODE_VERSION=$(node_version_check "$fabric_shim_version")
Expand Down

0 comments on commit d8d00bf

Please sign in to comment.