[bin] fix invocations of the exit command
This commit is contained in:
parent
3c2268adab
commit
af3953edb4
@ -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..."
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user