Developing lightweight computation at the DSG edge

Commit c748cd1e authored by p4u's avatar p4u Committed by Roger Pueyo Centelles
Browse files

update communities repo only when explicit user request


Signed-off-by: default avatarp4u <p4u@dabax.net>
parent 7e73dbd2
......@@ -301,12 +301,16 @@ download_communities() {
echo "-> Cannot fetch communities repository"
exit 1
}
} || {
}
}
update_communities() {
[ ! -d "$communities_dir" ] && download_communities || {
(cd $communities_dir && git pull) || {
echo "-> Cannot update communities repository"
exit 1
}
}
}
}
list_communities() {
......@@ -609,7 +613,7 @@ profile=${profile:-Default}
download_feeds
}
[ "$update_communities" == "1" ] && download_communities
[ "$update_communities" == "1" ] && update_communities
[ "$build_sdk" == "1" ] && build_sdk $target
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment