Bash: exclude node_modules in yay function.

This commit is contained in:
Artem Sapegin 2012-11-19 22:51:45 +04:00
parent 461d5deb56
commit 92f327cac1
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ function yay() {
remote="~/projects/yay/$dir"
url="http://yay.sapegin.me/$dir/"
tar cp --exclude '.git' . | gzip | ssh $server "mkdir -p "$remote"; gzip -cd | tar x -C "$remote""
tar cp --exclude '.git' --exclude 'node_modules' . | gzip | ssh $server "mkdir -p "$remote"; gzip -cd | tar x -C "$remote""
echo "Current directory uploaded to $url."
if command -v pbcopy >/dev/null 2>&1; then