Commit 7990c23d authored by Cédric BRINER's avatar Cédric BRINER Committed by Cédric BRINER
Browse files

git test and sync_header only done from luniidplab1

parent 692032f2
......@@ -802,25 +802,27 @@ function sync
fi
fi
#
# safety guard
must_exit="False"
if [[ ${ltp} != "lab" ]]; then
if [[ $(is_git_on_master) = "False" ]]; then
pr "Git is on branch ($(get_git_branch)) it should be on : master."
# safety guard & _SYNC_HEADER
if [[ ${h} = "luniipdlab1" ]]; then
must_exit="False"
if [[ ${ltp} != "lab" ]]; then
if [[ $(is_git_on_master) = "False" ]]; then
pr "Git is on branch ($(get_git_branch)) it should be on : master."
must_exit="True"
fi
fi
if [[ $(has_git_something_to_commit) = "True" ]]; then
pr "Git has something to commit, You should commit your work before !"
must_exit="True"
fi
if [[ ${must_exit} = "True" ]]; then
pb "Exit !"
exit 1
fi
#
#
construct_sync_header > ${IDP_HOME}/_SYNC_HEADER
fi
if [[ $(has_git_something_to_commit) = "True" ]]; then
pr "Git has something to commit, You should commit your work before !"
must_exit="True"
fi
if [[ ${must_exit} = "True" ]]; then
pb "Exit !"
exit 1
fi
#
#
construct_sync_header > ${IDP_HOME}/_SYNC_HEADER
pb "############################################################"
pb "$(cat ${IDP_HOME}/_SYNC_HEADER)" | sed "s|^| |"
echo ""
......
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