Skip to content

Commit be2a334

Browse files
committed
fix
1 parent 078683c commit be2a334

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Github/Runners/bootstrap/cachyos.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ fi
2222
#Bootstrap
2323
pacman -y --sync --refresh --refresh --sysupgrade --noconfirm --debug
2424
packages="bash binutils curl fakechroot fakeroot git wget"
25-
for pkg in $packages; do pacman -Sy "$pkg" --noconfirm ; done
26-
for pkg in $packages; do pacman -Sy "$pkg" --needed --noconfirm ; done
25+
for pkg in $packages; do pacman -Sy "${pkg}" --noconfirm ; done
26+
for pkg in $packages; do pacman -Sy "${pkg}" --needed --noconfirm ; done
2727
#Fix & Patches
2828
sed '\''/DownloadUser/d'\'' -i "/etc/pacman.conf"
2929
#sed '\''s/^.*Architecture\s*=.*$/Architecture = auto/'\'' -i "/etc/pacman.conf"
@@ -58,13 +58,13 @@ fi
5858
#Fake-Sudo
5959
pacman -Rsndd sudo 2>/dev/null
6060
rm -rvf "/usr/bin/sudo" 2>/dev/null
61-
curl -qfsSL "https://github.com/pkgforge/flatimage-base/releases/download/$(uname -m)/fake-sudo-pkexec.tar.zst" -o "./fake-sudo-pkexec.tar.zst" && chmod +x "./fake-sudo-pkexec.tar.zst"
61+
curl -qfsSL "https://github.com/pkgforge/devscripts/releases/download/common-utils/fake-sudo-pkexec.tar.zst" -o "./fake-sudo-pkexec.tar.zst" && chmod +x "./fake-sudo-pkexec.tar.zst"
6262
pacman -Uddd "./fake-sudo-pkexec.tar.zst" --noconfirm
6363
pacman -Syy fakeroot --needed --noconfirm
6464
rm -rvf "./fake-sudo-pkexec.tar.zst"
6565
#Yay
66-
curl -qfsSL "https://github.com/pkgforge/flatimage-base/releases/download/$(uname -m)/yay" -o "/usr/bin/yay" && chmod +x "/usr/bin/yay"
67-
yay --version ; which fakeroot yay sudo
66+
curl -qfsSL "https://github.com/pkgforge/devscripts/releases/download/common-utils/yay-$(uname -m)" -o "/usr/bin/yay" && chmod +x "/usr/bin/yay"
67+
yay --version ; which fakeroot yay sudo
6868
#More cleanup
6969
rm -rfv "/usr/share/gtk-doc/"* 2>/dev/null
7070
rm -rfv "/usr/share/man/"* 2>/dev/null
@@ -100,7 +100,7 @@ fi
100100
touch ""/etc/{host.conf,hosts,nsswitch.conf} 2>/dev/null
101101
hostname 2>/dev/null; cat "/etc/os-release" 2>/dev/null'
102102
##Export
103-
docker export "$(docker ps -aqf 'name=cachyos')" --output "rootfs.tar"
103+
docker export "$(docker ps -aqf 'name=cachyos-base')" --output "rootfs.tar"
104104
if [[ -f "./rootfs.tar" ]] && [[ $(stat -c%s "./rootfs.tar") -gt 10000 ]]; then
105105
mkdir -pv "./rootfs" && export ROOTFS_DIR="$(realpath "./rootfs")"
106106
rsync -achLv --mkpath "./rootfs.tar" "/tmp/cachyos-base.tar"
@@ -115,7 +115,7 @@ popd "$(mktemp -d)" >/dev/null 2>&1
115115
#-------------------------------------------------------#
116116
##Push
117117
#ENV
118-
D_ID="$(docker ps -qf 'name=cachyos-base' | tr -d '[:space:]')"
118+
D_ID="$(docker ps -aqf 'name=cachyos-base' | tr -d '[:space:]')"
119119
D_TAG="v$(date +'%Y.%m.%d' | tr -d '[:space:]')"
120120
export D_ID D_TAG
121121
#Tags

0 commit comments

Comments
 (0)