[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
|
continue
|
||||||
fi
|
fi
|
||||||
rm -rf /usr/portage/packages/*
|
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)
|
built_pkgs=$(find /usr/portage/packages -name "*.tbz2" | xargs echo)
|
||||||
[[ -z "${built_pkgs}" ]] && echo "ouch no kernel pkgs" && exit 2
|
[[ -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
|
done
|
||||||
|
|
||||||
echo "Now you should remove old packages..."
|
echo "Now you should remove old packages..."
|
||||||
|
@ -13,10 +13,10 @@ for kernel in $kernels; do
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
rm -rf /usr/portage/packages/*
|
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)
|
built_pkgs=$(find /usr/portage/packages -name "*.tbz2" | xargs echo)
|
||||||
[[ -z "${built_pkgs}" ]] && echo "ouch no kernel pkgs" && exit 2
|
[[ -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
|
echo
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -14,10 +14,10 @@ for kernel in $kernels; do
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
rm -rf /usr/portage/packages/*
|
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)
|
built_pkgs=$(find /usr/portage/packages -name "*.tbz2" | xargs echo)
|
||||||
[[ -z "${built_pkgs}" ]] && echo "ouch no kernel pkgs" && exit 2
|
[[ -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
|
echo
|
||||||
eit search "#${kernel}" -q | sort | uniq
|
eit search "#${kernel}" -q | sort | uniq
|
||||||
echo
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user