diff options
Diffstat (limited to 'src/treepkg')
-rwxr-xr-x | src/treepkg | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/treepkg b/src/treepkg index 9d3c0c3..f417010 100755 --- a/src/treepkg +++ b/src/treepkg @@ -27,11 +27,11 @@ check_vars libretools FULLBUILDCMD || exit 1 #check_vars libretools HOOKPREBUILD HOOKLOCALRELEASE || exit 1 load_files makepkg -term_title "${0##*/}" +term_title "%s" "${0##*/}" # End inmediately but print an useful message trap_exit() { - term_title "${0##*/}: $(_ 'Error!')" + term_title "%s: Error!" "${0##*/}" error "%s: %s (leftovers on %s" "${0##*/}" "$*" "${BUILDDIR}" exit 1 } @@ -204,7 +204,7 @@ if [[ ${DEPTH} -eq 0 ]]; then ${VERBOSE} && msg "Building %s" "${_pkg/_/ }" || true # Remove leading zeros and space if any - term_title "$(echo ${_pkg/_/ } | sed "s/^0\+ \?//")" + term_title "%s" "$(echo ${_pkg/_/ } | sed "s/^0\+ \?//")" # Run build command pushd "${BUILDDIR}/${_pkg}" >/dev/null @@ -237,5 +237,5 @@ if [[ ${DEPTH} -eq 0 ]]; then fi -term_title "$(_ Done)" +term_title "Done" exit $? |