megabyte-labs / install.doctor

A glorious combination of application / theme settings and a performant cross-platform, desktop-oriented software suite.
https://megabyte.space
Other
85 stars 17 forks source link

`install-program` fails while running pkg-specific pre-install steps due to a malformed command #107

Closed TheDcoder closed 11 months ago

TheDcoder commented 11 months ago

❔ What are you experiencing an issue with?

Latest Release

❔ Version

fc88131 (current master)

🐞 Description

The install-program script fails due to a malformed command:

❯   Pre-Install    Running package-specific pre-installation steps
$ $'. /etc/os-release\ncat <<EOF | sudo tee /etc/yum.repos.d/virtualbox.repo\n[virtualbox]\nname=Fedora $releasever - $basearch - VirtualBox\nbaseurl=http://download.virtualbox.org/virtualbox/rpm/$ID/$VERSION_ID/\\$basearch\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=https://www.virtualbox.org/download/oracle_vbox.asc\nEOF\nsudo dnf -y install @development-tools\nsudo dnf -y install kernel-headers kernel-devel dkms elfutils-libelf-devel qt5-qtx11extras\n'
/usr/bin/bash: line 1: . /etc/os-release
cat <<EOF | sudo tee /etc/yum.repos.d/virtualbox.repo
[virtualbox]
name=Fedora $releasever - $basearch - VirtualBox
baseurl=http://download.virtualbox.org/virtualbox/rpm/$ID/$VERSION_ID/\$basearch
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc
EOF
sudo dnf -y install @development-tools
sudo dnf -y install kernel-headers kernel-devel dkms elfutils-libelf-devel qt5-qtx11extras
: No such file or directory
Error: /usr/bin/bash: line 1: . /etc/os-release
cat <<EOF | sudo tee /etc/yum.repos.d/virtualbox.repo
[virtualbox]
name=Fedora $releasever - $basearch - VirtualBox
baseurl=http://download.virtualbox.org/virtualbox/rpm/$ID/$VERSION_ID/\$basearch
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc
EOF
sudo dnf -y install @development-tools
sudo dnf -y install kernel-headers kernel-devel dkms elfutils-libelf-devel qt5-qtx11extras
: No such file or directory
    at installSoftware (file:///home/john/.local/bin/install-program.mjs:1872:12)
    exit code: 127 (Command not found)

I believe the issue occurs here: https://github.com/megabyte-labs/install.doctor/blob/fc88131bbae74951ac6a815a35c73f585619acb0/home/dot_local/bin/executable_install-program#L1882

Tested in Fedora, attaching the full log for reference: doctor-install-new.html.gz

⏺️ Steps To Reproduce

No response

πŸ“’ Relevant Log Output

No response

πŸ’‘ Possible Solution

No response

TheDcoder commented 11 months ago

Fixed in 8a56619