All Questions
Tagged with bash-array git
2 questions
1
vote
1
answer
92
views
issue with bash arrays containing both commands and paths
I'm trying to write a script to tailor my dotfile setup to each machine using git update-index -skip-worktree
but it keeps chopping up the paths. I'm passing arrays starting with commands where every ...
0
votes
2
answers
2k
views
Find overlap/intersection of lists with bash
Say I have these two "lists":
#!/usr/bin/env bash
git fetch origin;
first_list=( );
second_list=( );
git branch --merged "remotes/origin/dev" | tr -d ' *' | while read branch; do
first_list+=(...