Skip to content

Commit

Permalink
Merge pull request Katello#20 from ehelms/set-relaxed
Browse files Browse the repository at this point in the history
Use --relaxed flag when adding URL for sources pulling from master.
  • Loading branch information
ehelms committed Jul 30, 2015
2 parents a117591 + e185375 commit ad2ffe8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions setup_sources.sh
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -xe

dir='*'
[ -n "$1" ] && dir=$1
Expand All @@ -9,5 +9,10 @@ for spec in $dir/*.spec; do
sourcebase=$(basename "$source0")
[ -h $d/$sourcebase ] || continue
git annex whereis "$d/$sourcebase" 2>/dev/null | grep -q " web" && continue
git annex addurl --file "$d/$sourcebase" "$source0"

if [[ $2 == '--relaxed' ]]; then
git annex addurl --relaxed --file "$d/$sourcebase" "$source0"
else
git annex addurl --file "$d/$sourcebase" "$source0"
fi
done

0 comments on commit ad2ffe8

Please sign in to comment.