Update file executable_install-program
This commit is contained in:
parent
ef1b9e8a5c
commit
8030a0f8f8
1 changed files with 1 additions and 1 deletions
|
@ -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}"'`)
|
||||
|
|
Loading…
Reference in a new issue