Update file executable_install-program

This commit is contained in:
Brian Zalewski 2023-01-25 00:09:53 +00:00
parent 71e37515ef
commit 17b5cb9478

View file

@ -1633,7 +1633,7 @@ async function linkBin(installOrdersBinLink) {
try { try {
runCommand( runCommand(
`Adding bin link for ${pkg} (${binLink.bin})`, `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} \\\$*" > "${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`) log('success', 'Bin', `Linked ~/.local/bin/flatpak/${binLink.bin} to the ${pkg} Flatpak`)
} catch (e) { } catch (e) {
@ -1646,7 +1646,7 @@ async function linkBin(installOrdersBinLink) {
if (fileExists(caskDir)) { if (fileExists(caskDir)) {
runCommand( runCommand(
`Adding shortcut bin link for ${binLink.package}`, `Adding shortcut bin link for ${binLink.package}`,
`bash -c 'mkdir -p "${process.env.HOME}/.local/bin/cask" && echo "open ${caskDir} \$*" > "${process.env.HOME}/.local/bin/cask/${binLink.bin}" && chmod +x "${process.env.HOME}/.local/bin/cask/${binLink.bin}"'` `bash -c 'mkdir -p "${process.env.HOME}/.local/bin/cask" && echo "open ${caskDir} \\\$*" > "${process.env.HOME}/.local/bin/cask/${binLink.bin}" && chmod +x "${process.env.HOME}/.local/bin/cask/${binLink.bin}"'`
) )
} else { } else {
log('warn', 'Bin', `Expected Homebrew cask directory not found - ${pkg}`) log('warn', 'Bin', `Expected Homebrew cask directory not found - ${pkg}`)