From 3e16fabb7c57ecc40e81711da3e552014f1b5fd8 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Mon, 9 Jan 2023 08:27:10 +0000 Subject: [PATCH] Update file executable_install-program --- home/dot_local/bin/executable_install-program | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/home/dot_local/bin/executable_install-program b/home/dot_local/bin/executable_install-program index 984fefac..af6acb1d 100644 --- a/home/dot_local/bin/executable_install-program +++ b/home/dot_local/bin/executable_install-program @@ -1531,11 +1531,7 @@ async function linkBin(installOrdersBinLink) { if(!which.sync(binLink.bin, { nothrow: true })) { if (binLink.preference === 'flatpak' && flatpak) { try { - runCommand(`Adding bin link for ${pkg} (${binLink.bin})`, ` - 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})`, `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}"`) log('success', 'Bin', `Linked ~/.local/bin/flatpak/${binLink.bin} to the ${pkg} Flatpak`) } catch (e) { log('warn', 'Bin', `Expected flatpak directory not available - ${flatpakDir}/app/${pkg}`) @@ -1545,10 +1541,7 @@ async function linkBin(installOrdersBinLink) { const caskWhen = softwarePackages[binLink.package]["_when:cask"] const caskDir = caskWhen.replace('test -d ', '').replace(/"/g, '') if (fileExists(caskDir)) { - runCommand(`Adding shortcut bin link for ${binLink.package}`, ` - 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}`, `mkdir -p "${process.env.HOME}/.local/bin/cask" && echo "open ${caskDir}" > "${process.env.HOME}/.local/bin/cask/${binLink.bin}"`) } else { log('warn', 'Bin', `Expected Homebrew cask directory not found - ${pkg}`) }