Created
July 4, 2011 01:44
-
-
Save michaelsbradleyjr/1062800 to your computer and use it in GitHub Desktop.
jsanFix
This file contains hidden or 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 | |
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