Created
December 10, 2020 14:34
-
-
Save flavio-fernandes/9e642823f8b6948bc4b12a2ef0b115ab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git rev-parse HEAD | |
8c693b29ed355361612ecedae19b8f85c9394b80 | |
$ git diff master | |
diff --git a/ovn_cluster.sh b/ovn_cluster.sh | |
index 6e146d9..e3c6e68 100755 | |
--- a/ovn_cluster.sh | |
+++ b/ovn_cluster.sh | |
@@ -716,34 +716,35 @@ function build-images-with-ovn-rpms() { | |
} | |
function build-images-with-ovn-sources() { | |
+ if [ ! -d "${OVS_SRC_PATH}" ]; then | |
+ echo "Set the OVS_SRC_PATH var pointing to the location of ovs source code." | |
+ exit 1 | |
+ fi | |
+ | |
+ if [ ! -d "${OVN_SRC_PATH}" ]; then | |
+ echo "Set the OVN_SRC_PATH var pointing to the location of ovn source code." | |
+ exit 1 | |
+ fi | |
+ | |
+ echo "OVS_SRC_PATH = $OVS_SRC_PATH" | |
+ echo "OVN_SRC_PATH = $OVN_SRC_PATH" | |
+ | |
if [ ! -d ./ovs ]; then | |
- echo "OVS_SRC_PATH = $OVS_SRC_PATH" | |
- if [ "${OVS_SRC_PATH}" = "" ]; then | |
- echo "Set the OVS_SRC_PATH var pointing to the location of ovs source code." | |
- exit 1 | |
- fi | |
- | |
- rm -rf ./ovs | |
- cp -rf $OVS_SRC_PATH ./ovs | |
- DO_RM_OVS='yes' | |
+ DO_RM_OVS='yes' | |
fi | |
if [ ! -d ./ovn ]; then | |
- echo "OVN_SRC_PATH = $OVN_SRC_PATH" | |
- if [ "${OVN_SRC_PATH}" = "" ]; then | |
- echo "Set the OVN_SRC_PATH var pointing to the location of ovn source code." | |
- exit 1 | |
- fi | |
- rm -rf ovn | |
- cp -rf $OVN_SRC_PATH ovn | |
- DO_RM_OVN='yes' | |
+ DO_RM_OVN='yes' | |
fi | |
+ cp -urf "${OVN_SRC_PATH}" ./ovn | |
+ cp -urf "${OVS_SRC_PATH}" ./ovs | |
+ | |
touch tst.rpm | |
build-images | |
rm -f tst.rpm | |
- [ -n "$DO_RM_OVS" ] && rm -rf ovs ||: | |
- [ -n "$DO_RM_OVN" ] && rm -rf ovn ||: | |
+ [ -n "$DO_RM_OVS" ] && rm -rf ./ovs ||: | |
+ [ -n "$DO_RM_OVN" ] && rm -rf ./ovn ||: | |
} | |
function run-command() { | |
(.env) nu ~/work/ovn-fake-multinode.git on pr/38 | |
$ git status | |
On branch pr/38 | |
Your branch is up to date with 'upstream/pr/38'. | |
nothing to commit, working tree clean | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment