Update file executable_install-program
This commit is contained in:
parent
c4829c08de
commit
82dd7f04de
1 changed files with 2 additions and 1 deletions
|
@ -1631,9 +1631,10 @@ async function linkBin(installOrdersBinLink) {
|
|||
if (!which.sync(binLink.bin, { nothrow: true })) {
|
||||
if (binLink.preference === 'flatpak' && flatpak) {
|
||||
try {
|
||||
const wildcardParams = '$*'
|
||||
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}"'`
|
||||
`bash -c 'test -d ${flatpakDir}/app/${pkg} && mkdir -p "${process.env.HOME}/.local/bin/flatpak" && echo "flatpak run ${pkg} ${wildcardParams}" > "${process.env.HOME}/.local/bin/flatpak/${binLink.bin}" && chmod +x "${process.env.HOME}/.local/bin/flatpak/${binLink.bin}"'`
|
||||
)
|
||||
log('success', 'Bin', `Linked ~/.local/bin/flatpak/${binLink.bin} to the ${pkg} Flatpak`)
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in a new issue