[bin] fix invocations of the exit command

This commit is contained in:
Sławomir Nizio 2011-11-07 20:41:05 +01:00
parent 3c2268adab
commit af3953edb4
3 changed files with 6 additions and 6 deletions

View File

@ -13,10 +13,10 @@ for kernel in $kernels; do
continue
fi
rm -rf /usr/portage/packages/*
KERNEL_DIR="/usr/src/linux-${kernel}" emerge -B ${packages} || ( echo "ouch unable to build" && exit 1 )
KERNEL_DIR="/usr/src/linux-${kernel}" emerge -B ${packages} || { echo "ouch unable to build" && exit 1; }
built_pkgs=$(find /usr/portage/packages -name "*.tbz2" | xargs echo)
[[ -z "${built_pkgs}" ]] && echo "ouch no kernel pkgs" && exit 2
eit inject ${built_pkgs} || ( echo "ouch unable to inject" && exit 3 )
eit inject ${built_pkgs} || { echo "ouch unable to inject" && exit 3; }
done
echo "Now you should remove old packages..."

View File

@ -13,10 +13,10 @@ for kernel in $kernels; do
continue
fi
rm -rf /usr/portage/packages/*
KERNEL_DIR="/usr/src/linux-${kernel}" emerge -B ${packages} || ( echo "ouch unable to build" && exit 1 )
KERNEL_DIR="/usr/src/linux-${kernel}" emerge -B ${packages} || { echo "ouch unable to build" && exit 1; }
built_pkgs=$(find /usr/portage/packages -name "*.tbz2" | xargs echo)
[[ -z "${built_pkgs}" ]] && echo "ouch no kernel pkgs" && exit 2
eit inject ${built_pkgs} || ( echo "ouch unable to inject" && exit 3 )
eit inject ${built_pkgs} || { echo "ouch unable to inject" && exit 3; }
echo
done

View File

@ -14,10 +14,10 @@ for kernel in $kernels; do
continue
fi
rm -rf /usr/portage/packages/*
KERNEL_DIR="/usr/src/linux-${kernel}" emerge -B ${packages} || ( echo "ouch unable to build" && exit 1 )
KERNEL_DIR="/usr/src/linux-${kernel}" emerge -B ${packages} || { echo "ouch unable to build" && exit 1; }
built_pkgs=$(find /usr/portage/packages -name "*.tbz2" | xargs echo)
[[ -z "${built_pkgs}" ]] && echo "ouch no kernel pkgs" && exit 2
eit inject ${built_pkgs} || ( echo "ouch unable to inject" && exit 3 )
eit inject ${built_pkgs} || { echo "ouch unable to inject" && exit 3; }
echo
eit search "#${kernel}" -q | sort | uniq
echo