Skip to content

Instantly share code, notes, and snippets.

@michaelsbradleyjr
Created July 4, 2011 01:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelsbradleyjr/1062800 to your computer and use it in GitHub Desktop.
Save michaelsbradleyjr/1062800 to your computer and use it in GitHub Desktop.
jsanFix
#!/bin/bash
export npm_config_root=$(npm root -g 2>/dev/null)
cd $npm_config_root
find . -name postactivate.sh -exec chmod +x '{}' \;
scripts=$(find . -name __script -type d)
for script in $scripts
do
cd $script
cd ..
__script/postactivate.sh
cd $npm_config_root
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment