Commit af6d2e8486a8e1ddb97c446a06fd7a037abf306d
1 parent
e035d8ef3f
Exists in
master
ignore blank lines on submodule files
Showing 2 changed files with 10 additions and 8 deletions Side-by-side Diff
awesome/submodules
View file @
af6d2e8
link.sh
View file @
af6d2e8
... | ... | @@ -22,13 +22,16 @@ |
22 | 22 | then |
23 | 23 | while read l; |
24 | 24 | do |
25 | - read -a array <<< $l | |
26 | - if [ ! -e $dir/${array[1]} ]; | |
25 | + if [ -n "$l" ]; | |
27 | 26 | then |
28 | - git clone ${array[0]} $dir/${array[1]} | |
29 | - else | |
30 | - echo "Updating git repo ${array[1]}" | |
31 | - git --git-dir=$dir/${array[1]}/.git pull | |
27 | + read -a array <<< $l | |
28 | + if [ ! -e $dir/${array[1]} ]; | |
29 | + then | |
30 | + git clone ${array[0]} $dir/${array[1]} | |
31 | + else | |
32 | + echo "Updating git repo ${array[1]}" | |
33 | + git --git-dir=$dir/${array[1]}/.git pull | |
34 | + fi | |
32 | 35 | fi |
33 | 36 | done < $dir/submodules |
34 | 37 | fi |