Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaemon Coder <11915375+codefiles@users.noreply.github.com>2023-05-07 03:04:44 -0400
committerGitHub <noreply@github.com>2023-05-07 09:04:44 +0200
commitc10acfa5aeda44db9393fbbbf75356c0ff411e43 (patch)
tree96310c669c3c0cce5ed8cb2608374cf8075488af
parenta968dccbf1b9c83c8abc40e709c5b1c3142a5f2c (diff)
Refactor `build_iso.sh` zprofile (#1799)
-rwxr-xr-xbuild_iso.sh22
1 files changed, 10 insertions, 12 deletions
diff --git a/build_iso.sh b/build_iso.sh
index c63c20d4..df57b723 100755
--- a/build_iso.sh
+++ b/build_iso.sh
@@ -1,7 +1,5 @@
#!/bin/bash
-zprofile="/tmp/archlive/airootfs/root/.zprofile"
-
# Packages to add to the archiso profile packages
packages=(
git
@@ -17,18 +15,18 @@ packages=(
mkdir -p /tmp/archlive/airootfs/root/archinstall-git
cp -r . /tmp/archlive/airootfs/root/archinstall-git
-echo "pip uninstall archinstall -y" > $zprofile
-echo "cd archinstall-git" >> $zprofile
-echo "rm -rf dist" >> $zprofile
-
-echo "python -m build --wheel --no-isolation" >> $zprofile
-echo "pip install dist/archinstall*.whl" >> $zprofile
+cat <<- _EOF_ | tee /tmp/archlive/airootfs/root/.zprofile
+ pip uninstall archinstall -y
+ cd archinstall-git
+ rm -rf dist
-echo "echo \"This is an unofficial ISO for development and testing of archinstall. No support will be provided.\"" >> $zprofile
-echo "echo \"This ISO was built from Git SHA $GITHUB_SHA\"" >> $zprofile
-echo "echo \"Type archinstall to launch the installer.\"" >> $zprofile
+ python -m build --wheel --no-isolation
+ pip install dist/archinstall*.whl
-cat $zprofile
+ echo "This is an unofficial ISO for development and testing of archinstall. No support will be provided."
+ echo "This ISO was built from Git SHA $GITHUB_SHA"
+ echo "Type archinstall to launch the installer."
+_EOF_
pacman -Sy
pacman --noconfirm -S git archiso