Merge "Make script executable and BSD sed compatible"
This commit is contained in:
commit
b6476c652a
2
scripts/sources-branch-updater.sh
Normal file → Executable file
2
scripts/sources-branch-updater.sh
Normal file → Executable file
@ -65,7 +65,7 @@ for repo in $(grep 'git_repo\:' ${SERVICE_FILE});do
|
|||||||
# Set the branch entry
|
# Set the branch entry
|
||||||
branch_entry="${branch_sha} # HEAD of \"$ONLINE_BRANCH\" as of $(date +%d.%m.%Y)"
|
branch_entry="${branch_sha} # HEAD of \"$ONLINE_BRANCH\" as of $(date +%d.%m.%Y)"
|
||||||
# Write the branch entry
|
# 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"
|
echo "processed $repo_name @ $branch_entry"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user