Skip to content

Instantly share code, notes, and snippets.

@monry
Last active August 28, 2019 07:09
Show Gist options
  • Save monry/7e1ec55208bb7ab99511c72645c2e7cf to your computer and use it in GitHub Desktop.
Save monry/7e1ec55208bb7ab99511c72645c2e7cf to your computer and use it in GitHub Desktop.
#!/bin/bash
mkdir -p scripts
curl -Lo scripts/first-aid-for-upm.sh https://gist.github.com/monry/9765f64ed0e73aed5d794c6ca6d2b389/raw/a3db343f841044d3d2bfd9988171c81689f1cb77/first-aid-for-upm.sh
chmod a+x scripts/first-aid-for-upm.sh
cat package.json | jq '.scripts.postinstall |= . + " && ./scripts/first-aid-for-upm.sh"' | jq -M . > package.json.tmp
mv package.json.tmp package.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment