Merge "Make script executable and BSD sed compatible"

This commit is contained in:
Jenkins 2015-04-25 02:10:13 +00:00 committed by Gerrit Code Review
commit b6476c652a

2
scripts/sources-branch-updater.sh Normal file → Executable file
View File

@ -65,7 +65,7 @@ for repo in $(grep 'git_repo\:' ${SERVICE_FILE});do
# Set the branch entry
branch_entry="${branch_sha} # HEAD of \"$ONLINE_BRANCH\" as of $(date +%d.%m.%Y)"
# Write the branch entry
sed -i "s|${repo_name}_git_install_branch:.*|${repo_name}_git_install_branch: $branch_entry|" ${SERVICE_FILE}
sed -i '' "s|${repo_name}_git_install_branch:.*|${repo_name}_git_install_branch: $branch_entry|" ${SERVICE_FILE}
echo "processed $repo_name @ $branch_entry"
fi
done