Update file executable_install-program

This commit is contained in:
Brian Zalewski 2023-01-09 09:36:19 +00:00
parent ef1b9e8a5c
commit 8030a0f8f8

View file

@ -1529,7 +1529,7 @@ async function linkBin(installOrdersBinLink) {
}
for (const binLink of installOrdersBinLink) {
const pkg = softwarePackages[binLink.package][binLink.preference]
if(typeof binLink.bin === 'string' && !which.sync(binLink.bin, { nothrow: true })) {
if(typeof pkg === 'string' && !which.sync(binLink.bin, { nothrow: true })) {
if (binLink.preference === 'flatpak' && flatpak) {
try {
runCommand(`Adding bin link for ${pkg} (${binLink.bin})`, `bash -c 'test -d ${flatpakDir}/app/${pkg} && mkdir -p "${process.env.HOME}/.local/bin/flatpak" && echo "flatpak run ${pkg} \"$*\"" > "${process.env.HOME}/.local/bin/flatpak/${binLink.bin}" && chmod +x "${process.env.HOME}/.local/bin/flatpak/${binLink.bin}"'`)