Update file executable_install-program
This commit is contained in:
parent
f0d55fbb76
commit
ef1b9e8a5c
1 changed files with 2 additions and 2 deletions
|
@ -1532,7 +1532,7 @@ async function linkBin(installOrdersBinLink) {
|
||||||
if(typeof binLink.bin === 'string' && !which.sync(binLink.bin, { nothrow: true })) {
|
if(typeof binLink.bin === 'string' && !which.sync(binLink.bin, { nothrow: true })) {
|
||||||
if (binLink.preference === 'flatpak' && flatpak) {
|
if (binLink.preference === 'flatpak' && flatpak) {
|
||||||
try {
|
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}"'`)
|
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}"'`)
|
||||||
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) {
|
||||||
log('warn', 'Bin', `Expected flatpak directory not available - ${flatpakDir}/app/${pkg}`)
|
log('warn', 'Bin', `Expected flatpak directory not available - ${flatpakDir}/app/${pkg}`)
|
||||||
|
@ -1542,7 +1542,7 @@ async function linkBin(installOrdersBinLink) {
|
||||||
const caskWhen = softwarePackages[binLink.package]["_when:cask"]
|
const caskWhen = softwarePackages[binLink.package]["_when:cask"]
|
||||||
const caskDir = caskWhen.replace('! test -d ', '').replace(/"/g, '')
|
const caskDir = caskWhen.replace('! test -d ', '').replace(/"/g, '')
|
||||||
if (fileExists(caskDir)) {
|
if (fileExists(caskDir)) {
|
||||||
runCommand(`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}"'`)
|
runCommand(`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}"'`)
|
||||||
} else {
|
} else {
|
||||||
log('warn', 'Bin', `Expected Homebrew cask directory not found - ${pkg}`)
|
log('warn', 'Bin', `Expected Homebrew cask directory not found - ${pkg}`)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue