package.json - create dest dirs if they don't exist

This commit is contained in:
Sindre Sorhus
2014-03-30 21:11:48 +02:00
parent 598c06ff5a
commit 5fca526368

View File

@@ -13,7 +13,7 @@
"node": ">=0.10.0" "node": ">=0.10.0"
}, },
"scripts": { "scripts": {
"postinstall": "ln -sf \"$PWD/pure.zsh\" /usr/local/share/zsh/site-functions/prompt_pure_setup || Could not automagically symlink the prompt. Check out the readme on how to do it manually: https://github.com/sindresorhus/pure#manually" "postinstall": "dest=/usr/local/share/zsh/site-functions/; mkdir -p $dest && ln -sf \"$PWD/pure.zsh\" $dest/prompt_pure_setup || Could not automagically symlink the prompt. Check out the readme on how to do it manually: https://github.com/sindresorhus/pure#manually"
}, },
"files": [ "files": [
"pure.zsh" "pure.zsh"