From 43f6b08117d0266e44e462eb3024aef653e507b6 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Fri, 4 Mar 2016 11:07:09 -0300 Subject: Clarify what is happening --- tools/builder_common.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tools/builder_common.sh') diff --git a/tools/builder_common.sh b/tools/builder_common.sh index 55ac60c..fb7c819 100644 --- a/tools/builder_common.sh +++ b/tools/builder_common.sh @@ -2117,9 +2117,11 @@ poudriere_update_jails() { jail_name=$(poudriere_jail_name ${jail_arch}) local _create_or_update="-u" + local _create_or_update_text="Updating" if ! poudriere jail -i -j "${jail_name}" >/dev/null 2>&1; then echo ">>> Poudriere jail ${jail_name} not found, creating..." | tee -a ${LOGFILE} _create_or_update="-c -v ${FREEBSD_PARENT_BRANCH} -a ${jail_arch} -m svn" + _create_or_update_text="Creating" fi if [ "${jail_arch}" = "arm.armv6" ]; then @@ -2128,10 +2130,10 @@ poudriere_update_jails() { native_xtools="" fi - echo -n ">>> Updating jail ${jail_name}, it may take some time... " | tee -a ${LOGFILE} + echo -n ">>> ${_create_or_update_text} jail ${jail_name}, it may take some time... " | tee -a ${LOGFILE} if ! script -aq ${LOGFILE} poudriere jail ${_create_or_update} -j "${jail_name}" -P ${_jail_patch} ${native_xtools} >/dev/null 2>&1; then echo "" | tee -a ${LOGFILE} - echo ">>> ERROR: Error updating jail ${jail_name}, aborting..." | tee -a ${LOGFILE} + echo ">>> ERROR: Error ${_create_or_update_text} jail ${jail_name}, aborting..." | tee -a ${LOGFILE} print_error_pfS fi echo "Done!" | tee -a ${LOGFILE} -- cgit v1.1