-
-
Save narqo/5299979 to your computer and use it in GitHub Desktop.
Workaround about local bem-tools installation
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
#!/usr/bin/env bash | |
npm_bem=`npm bin`/bem | |
home_bem=$HOME/bin/bem | |
global_bem=bem | |
bem_=$global_bem | |
if [ -f "$npm_bem" ]; then | |
bem_=$npm_bem | |
elif [ -f "$home_bem" ]; then | |
bem_=$home_bem | |
fi | |
echo "Using \"$bem_\"" | |
$bem_ $* | |
unset npm_bem | |
unset home_bem | |
unset global_bem | |
unset bem_ | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment