Fix all heredoc EOF delimiter indentation issues
- Move all EOF delimiters to leftmost column with no indentation - Fix shell syntax errors in build.yml, test.yml, update-readme.yml, ci.yml - Ensure proper shell heredoc syntax for Forgejo Actions compatibility - Resolve 'unexpected end of file' errors in workflow execution
This commit is contained in:
parent
13329ee383
commit
ad7f2ddf4e
4 changed files with 40 additions and 40 deletions
|
|
@ -60,10 +60,10 @@ jobs:
|
||||||
|
|
||||||
# Configure apt-cacher-ng proxy sources
|
# Configure apt-cacher-ng proxy sources
|
||||||
cat > /etc/apt/sources.list.d/apt-cacher-ng.list << 'EOF'
|
cat > /etc/apt/sources.list.d/apt-cacher-ng.list << 'EOF'
|
||||||
deb http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
|
deb http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
|
||||||
deb-src http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
|
deb-src http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
|
||||||
deb http://192.168.1.101:3142/HTTPS///get.docker.com/ubuntu docker main
|
deb http://192.168.1.101:3142/HTTPS///get.docker.com/ubuntu docker main
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Update package lists with proxy sources
|
# Update package lists with proxy sources
|
||||||
apt update -y
|
apt update -y
|
||||||
|
|
@ -72,9 +72,9 @@ jobs:
|
||||||
|
|
||||||
# Use standard Debian sources
|
# Use standard Debian sources
|
||||||
cat > /etc/apt/sources.list.d/standard.list << 'EOF'
|
cat > /etc/apt/sources.list.d/standard.list << 'EOF'
|
||||||
deb http://deb.debian.org/debian stable main contrib non-free
|
deb http://deb.debian.org/debian stable main contrib non-free
|
||||||
deb-src http://deb.debian.org/debian stable main contrib non-free
|
deb-src http://deb.debian.org/debian stable main contrib non-free
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Update package lists
|
# Update package lists
|
||||||
apt update -y
|
apt update -y
|
||||||
|
|
|
||||||
|
|
@ -37,17 +37,17 @@ jobs:
|
||||||
if curl -s --connect-timeout 5 http://192.168.1.101:3142/acng-report.html > /dev/null 2>&1; then
|
if curl -s --connect-timeout 5 http://192.168.1.101:3142/acng-report.html > /dev/null 2>&1; then
|
||||||
echo "✅ apt-cacher-ng is available, configuring proxy sources..."
|
echo "✅ apt-cacher-ng is available, configuring proxy sources..."
|
||||||
cat > /etc/apt/sources.list.d/apt-cacher-ng.list << 'EOF'
|
cat > /etc/apt/sources.list.d/apt-cacher-ng.list << 'EOF'
|
||||||
deb http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
|
deb http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
|
||||||
deb-src http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
|
deb-src http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
|
||||||
deb http://192.168.1.101:3142/HTTPS///get.docker.com/ubuntu docker main
|
deb http://192.168.1.101:3142/HTTPS///get.docker.com/ubuntu docker main
|
||||||
EOF
|
EOF
|
||||||
apt update -y
|
apt update -y
|
||||||
else
|
else
|
||||||
echo "⚠️ apt-cacher-ng not available, using standard Debian sources..."
|
echo "⚠️ apt-cacher-ng not available, using standard Debian sources..."
|
||||||
cat > /etc/apt/sources.list.d/standard.list << 'EOF'
|
cat > /etc/apt/sources.list.d/standard.list << 'EOF'
|
||||||
deb http://deb.debian.org/debian stable main contrib non-free
|
deb http://deb.debian.org/debian stable main contrib non-free
|
||||||
deb-src http://deb.debian.org/debian stable main contrib non-free
|
deb-src http://deb.debian.org/debian stable main contrib non-free
|
||||||
EOF
|
EOF
|
||||||
apt update -y
|
apt update -y
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -105,15 +105,15 @@ jobs:
|
||||||
apt update -y
|
apt update -y
|
||||||
if curl -s --connect-timeout 5 http://192.168.1.101:3142/acng-report.html > /dev/null 2>&1; then
|
if curl -s --connect-timeout 5 http://192.168.1.101:3142/acng-report.html > /dev/null 2>&1; then
|
||||||
cat > /etc/apt/sources.list.d/apt-cacher-ng.list << 'EOF'
|
cat > /etc/apt/sources.list.d/apt-cacher-ng.list << 'EOF'
|
||||||
deb http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
|
deb http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
|
||||||
deb-src http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
|
deb-src http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
|
||||||
EOF
|
EOF
|
||||||
apt update -y
|
apt update -y
|
||||||
else
|
else
|
||||||
cat > /etc/apt/sources.list.d/standard.list << 'EOF'
|
cat > /etc/apt/sources.list.d/standard.list << 'EOF'
|
||||||
deb http://deb.debian.org/debian stable main contrib non-free
|
deb http://deb.debian.org/debian stable main contrib non-free
|
||||||
deb-src http://deb.debian.org/debian stable main contrib non-free
|
deb-src http://deb.debian.org/debian stable main contrib non-free
|
||||||
EOF
|
EOF
|
||||||
apt update -y
|
apt update -y
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -153,15 +153,15 @@ jobs:
|
||||||
apt update -y
|
apt update -y
|
||||||
if curl -s --connect-timeout 5 http://192.168.1.101:3142/acng-report.html > /dev/null 2>&1; then
|
if curl -s --connect-timeout 5 http://192.168.1.101:3142/acng-report.html > /dev/null 2>&1; then
|
||||||
cat > /etc/apt/sources.list.d/apt-cacher-ng.list << 'EOF'
|
cat > /etc/apt/sources.list.d/apt-cacher-ng.list << 'EOF'
|
||||||
deb http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
|
deb http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
|
||||||
deb-src http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
|
deb-src http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
|
||||||
EOF
|
EOF
|
||||||
apt update -y
|
apt update -y
|
||||||
else
|
else
|
||||||
cat > /etc/apt/sources.list.d/standard.list << 'EOF'
|
cat > /etc/apt/sources.list.d/standard.list << 'EOF'
|
||||||
deb http://deb.debian.org/debian stable main contrib non-free
|
deb http://deb.debian.org/debian stable main contrib non-free
|
||||||
deb-src http://deb.debian.org/debian stable main contrib non-free
|
deb-src http://deb.debian.org/debian stable main contrib non-free
|
||||||
EOF
|
EOF
|
||||||
apt update -y
|
apt update -y
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,10 +44,10 @@ jobs:
|
||||||
|
|
||||||
# Configure apt-cacher-ng proxy sources
|
# Configure apt-cacher-ng proxy sources
|
||||||
cat > /etc/apt/sources.list.d/apt-cacher-ng.list << 'EOF'
|
cat > /etc/apt/sources.list.d/apt-cacher-ng.list << 'EOF'
|
||||||
deb http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
|
deb http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
|
||||||
deb-src http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
|
deb-src http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
|
||||||
deb http://192.168.1.101:3142/HTTPS///get.docker.com/ubuntu docker main
|
deb http://192.168.1.101:3142/HTTPS///get.docker.com/ubuntu docker main
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Update package lists with proxy sources
|
# Update package lists with proxy sources
|
||||||
apt update -y
|
apt update -y
|
||||||
|
|
@ -56,9 +56,9 @@ jobs:
|
||||||
|
|
||||||
# Use standard Debian sources
|
# Use standard Debian sources
|
||||||
cat > /etc/apt/sources.list.d/standard.list << 'EOF'
|
cat > /etc/apt/sources.list.d/standard.list << 'EOF'
|
||||||
deb http://deb.debian.org/debian stable main contrib non-free
|
deb http://deb.debian.org/debian stable main contrib non-free
|
||||||
deb-src http://deb.debian.org/debian stable main contrib non-free
|
deb-src http://deb.debian.org/debian stable main contrib non-free
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Update package lists
|
# Update package lists
|
||||||
apt update -y
|
apt update -y
|
||||||
|
|
|
||||||
|
|
@ -29,10 +29,10 @@ jobs:
|
||||||
|
|
||||||
# Configure apt-cacher-ng proxy sources
|
# Configure apt-cacher-ng proxy sources
|
||||||
cat > /etc/apt/sources.list.d/apt-cacher-ng.list << 'EOF'
|
cat > /etc/apt/sources.list.d/apt-cacher-ng.list << 'EOF'
|
||||||
deb http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
|
deb http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
|
||||||
deb-src http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
|
deb-src http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
|
||||||
deb http://192.168.1.101:3142/HTTPS///get.docker.com/ubuntu docker main
|
deb http://192.168.1.101:3142/HTTPS///get.docker.com/ubuntu docker main
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Update package lists with proxy sources
|
# Update package lists with proxy sources
|
||||||
apt update -y
|
apt update -y
|
||||||
|
|
@ -41,9 +41,9 @@ jobs:
|
||||||
|
|
||||||
# Use standard Debian sources
|
# Use standard Debian sources
|
||||||
cat > /etc/apt/sources.list.d/standard.list << 'EOF'
|
cat > /etc/apt/sources.list.d/standard.list << 'EOF'
|
||||||
deb http://deb.debian.org/debian stable main contrib non-free
|
deb http://deb.debian.org/debian stable main contrib non-free
|
||||||
deb-src http://deb.debian.org/debian stable main contrib non-free
|
deb-src http://deb.debian.org/debian stable main contrib non-free
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Update package lists
|
# Update package lists
|
||||||
apt update -y
|
apt update -y
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue