ci-image-git-buildpackage/overlay/usr/share/gitlab-ci-common

21 lines
388 B
Bash

if [ -z "$CI" ]; then
echo "This script should only ever be run in GitLab CI!"
exit 1
fi
apt_get="apt-get -qy $APT_GET_OPTIONS"
function apt_get_auto_install() {
$apt_get update
$apt_get install $@ && apt-mark auto $@
}
# Local variables:
# mode: shell-script
# sh-basic-offset: 4
# sh-indent-comment: t
# indent-tabs-mode: nil
# End:
# ex: ts=4 sw=4 et filetype=bash