From 28a2de8204b26307e35696413ba925bc67cceb49 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Fri, 24 Apr 2015 09:06:19 +0100 Subject: [PATCH] Make script executable and BSD sed compatible This patch sets the sources-branch-updater script to be executable and adjusts the in-place sed operation to work for both GNU sed and BSD sed. Partially implements: blueprint master-kilofication Change-Id: Ic2cd6a3a6a25d590c9cdbae8026dc3c4d5d5674d --- scripts/sources-branch-updater.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 scripts/sources-branch-updater.sh diff --git a/scripts/sources-branch-updater.sh b/scripts/sources-branch-updater.sh old mode 100644 new mode 100755 index 60de4df65e..b53bac02b6 --- a/scripts/sources-branch-updater.sh +++ b/scripts/sources-branch-updater.sh @@ -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