diff options
author | Ashlee Young <ashlee@wildernessvoice.com> | 2015-11-03 17:18:56 -0800 |
---|---|---|
committer | Ashlee Young <ashlee@wildernessvoice.com> | 2015-11-03 17:18:56 -0800 |
commit | c7cbe191f120a34595218621306c3db11c4f4721 (patch) | |
tree | f5088ff53aaaec3e1db0b7a36e46490b19822ae5 | |
parent | df59c6d0ee404b1716410dac16e5d1321efd395c (diff) |
Fixed unnecessary escape sequences
Change-Id: I43a4e7514e477b880b5cf5f9f30f217960c17cb0
Signed-off-by: Ashlee Young <ashlee@wildernessvoice.com>
-rwxr-xr-x | update_OPNFV-mirror.sh | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/update_OPNFV-mirror.sh b/update_OPNFV-mirror.sh index 5f4e7562..62154fac 100755 --- a/update_OPNFV-mirror.sh +++ b/update_OPNFV-mirror.sh @@ -99,13 +99,17 @@ setupRepos() syncRepos() { - cd $DEVROOT - rsync -arv --exclude=.git --exclude=.gitignore --exclude=.gitreview $OPNFV_REPO/ $GITHUB_REPO/ - cd $DEVROOT/$GITHUB_REPO/framework/build - ls | grep -v README | xargs rm -rf + if ask "Would you like to sync the two repos?"; then + cd $DEVROOT + rsync -arv --exclude=.git --exclude=.gitignore --exclude=.gitreview $OPNFV_REPO/ $GITHUB_REPO/ + cd $DEVROOT/$GITHUB_REPO/framework/build + ls | grep -v README | xargs rm -rf + printf "Your local ONOSFW repo and mirror are now in sync.\n\n" + fi cd $DEVROOT/$OPNFV_REPO lastCommit=$(git log -1 | grep commit | grep -v ONOS | awk '{print $2}') - printf "Your local ONOSFW repo and mirror are now in sync.\n\n" + printf "Gerrit's commit ID is set to $lastCommit\n\n" + } checkinMirror() @@ -113,7 +117,7 @@ checkinMirror() if ask "Would you like to push the repo changes to Github?"; then cd $DEVROOT/$GITHUB_REPO git add --all . - git commit -m \"Updating to Gerrit commit id $lastCommit\" + git commit -m "Updating to Gerrit commit id $lastCommit" git push fi } |