From 691baba22e7fb1fe47005558ca92e540566fe383 Mon Sep 17 00:00:00 2001 From: Joshua Ismael Haase Hernandez Date: Fri, 25 Mar 2011 07:09:23 -0700 Subject: Added libremessages and format in scripts --- librestage | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'librestage') diff --git a/librestage b/librestage index 70aaa4a..f75d101 100755 --- a/librestage +++ b/librestage @@ -50,7 +50,7 @@ if [ ${#repos} -eq 0 ]; then fi [[ ! -e ./PKGBUILD ]] && { - echo "PKGBUILD not found" + error "PKGBUILD not found" exit 1 } @@ -70,7 +70,7 @@ for _arch in ${arch[@]}; do pkgpath="$PKGDEST/$pkgfile" if [ -e "${pkgpath}" ]; then - echo found ${pkgfile} + msg "Found ${pkgfile}" canonical="" for _repo in ${repos[@]}; do @@ -78,17 +78,17 @@ for _arch in ${arch[@]}; do [[ -z "$canonical" ]] && { canonical="${WORKDIR}/staging/${_repo}/${pkgfile}" cp "${pkgpath}" "${WORKDIR}/staging/${_repo}/" || { - echo "Can't put ${pkgfile} on [staging]" + error "Can't put ${pkgfile} on [staging]" exit 1 } && { - echo "${pkg} staged on [${_repo}]" + msg2 "${pkg} staged on [${_repo}]" } } || { ln "${canonical}" "${WORKDIR}/staging/${_repo}/${pkgfile}" || { - echo "Can't put ${pkgfile} on [staging]" + error "Can't put ${pkgfile} on [staging]" exit 1 } && { - echo "${pkg} staged on [${_repo}]" + msg2 "${pkg} staged on [${_repo}]" } } done -- cgit v1.2.2