From 92f327cac1288a1a8efb3b3844ba969fcf2017e4 Mon Sep 17 00:00:00 2001 From: Artem Sapegin Date: Mon, 19 Nov 2012 22:51:45 +0400 Subject: [PATCH] Bash: exclude node_modules in yay function. --- includes/bash_functions.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/bash_functions.bash b/includes/bash_functions.bash index 8fb7ca6..f383240 100644 --- a/includes/bash_functions.bash +++ b/includes/bash_functions.bash @@ -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