Browse Source

Fix the broken sed command for replacing registry in yarn.lock

framework
Drew Short 6 years ago
parent
commit
d989e0edd1
  1. 2
      administration_client/create_config_files.sh

2
administration_client/create_config_files.sh

@ -9,5 +9,5 @@ else
echo "registry \"$NPM_CONFIG_REGISTRY\"" >> .npmrc
echo "registry \"$NPM_CONFIG_REGISTRY\"" >> .yarnrc
echo "Replacing static yarn registry references in yarn.lock..."
find . -name yarn.lock -exec sed -i "s#https://registry.yarnpkg.com#`awk '$1 == "registry" { gsub(/"/,""); print $NF}' /root/.yarnrc`#g" {} \;
find . -name yarn.lock -exec sed -i "s#https://registry.yarnpkg.com#`awk '$1 == "registry" { gsub(/"/,""); print $NF}' .yarnrc`#g" {} \;
fi
Loading…
Cancel
Save