Bash: exclude node_modules in yay function.
This commit is contained in:
parent
461d5deb56
commit
92f327cac1
@ -126,7 +126,7 @@ function yay() {
|
|||||||
remote="~/projects/yay/$dir"
|
remote="~/projects/yay/$dir"
|
||||||
url="http://yay.sapegin.me/$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."
|
echo "Current directory uploaded to $url."
|
||||||
if command -v pbcopy >/dev/null 2>&1; then
|
if command -v pbcopy >/dev/null 2>&1; then
|
||||||
|
Loading…
Reference in New Issue
Block a user