fix: make shellcheck happy and use ssh agent fw
This commit is contained in:
@@ -8,7 +8,6 @@ CTX="${WORK_DIR}/ctx"
|
||||
|
||||
IMAGE="docker.io/gentoo/stage3:amd64-desktop-openrc"
|
||||
PROFILE="default/linux/amd64/23.0/desktop"
|
||||
CFLAGS="-O2 -pipe -march=x86-64-v3"
|
||||
|
||||
if [[ ! -d "$REPO/.git" ]]; then
|
||||
git clone "$REPO_URL" "$REPO"
|
||||
@@ -16,7 +15,7 @@ else
|
||||
git -C "$REPO" pull --rebase
|
||||
fi
|
||||
|
||||
echo "Aggregating configuration..."
|
||||
echo "Aggregating config..."
|
||||
rm -rf "$CTX" && mkdir -p "$CTX"/var/lib/portage
|
||||
|
||||
# config types to merge
|
||||
@@ -29,7 +28,7 @@ for type in "${CONFIGS[@]}"; do
|
||||
inject() {
|
||||
local src=$1 prefix=$2
|
||||
[[ ! -e "$src" ]] && return
|
||||
|
||||
|
||||
if [[ -d "$src" ]]; then
|
||||
for f in "$src"/*; do
|
||||
[[ -f "$f" ]] && cp "$f" "$dest/${prefix}-$(basename "$f")"
|
||||
@@ -58,8 +57,6 @@ cp "$REPO/binhost/make.conf" "$CTX/etc/portage/make.conf"
|
||||
{
|
||||
# we don't want build to fail bcs of EULA check..
|
||||
echo 'ACCEPT_LICENSE="*"'
|
||||
echo "CFLAGS=\"$CFLAGS\""
|
||||
echo "CXXFLAGS=\"$CFLAGS\""
|
||||
} >> "$CTX/etc/portage/make.conf"
|
||||
|
||||
echo "Starting Builder..."
|
||||
|
||||
Reference in New Issue
Block a user