Last active
August 28, 2019 07:09
-
-
Save monry/7e1ec55208bb7ab99511c72645c2e7cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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