diff --git a/script/install-git-commands b/script/install-git-commands index 3a27b1d6..49f34fde 100755 --- a/script/install-git-commands +++ b/script/install-git-commands @@ -15,12 +15,11 @@ command -v git-thaw || install-git-freeze-bin git-thaw command -v git-abandon || install-git-freeze-bin git-abandon function install-scripts-bin { - src_bin=${1} - dest_bin=${2} - echo "Installing: ${dest_bin}" - curl -o "/tmp/${dest_bin}" "https://raw.githubusercontent.com/lgarron/dotfiles/scripts/main/${src_bin}" - sudo cp "/tmp/${dest_bin}" "/usr/bin/${dest_bin}" + dest_bin=${1} + src_bin=${2} + echo "Installing: ${script}" + sudo cp "scripts/${src_bin}" "/usr/bin/${dest_bin}" sudo chmod +x "/usr/bin/${dest_bin}" } -command -v git-distance || install-scripts-bin git/git-distance.fish git-distance +command -v git-distance || install-scripts-bin git-distance git/git-distance.fish diff --git a/script/install-lgarron-scripts b/script/install-lgarron-scripts index 0d8b2a8d..344c78ce 100755 --- a/script/install-lgarron-scripts +++ b/script/install-lgarron-scripts @@ -2,13 +2,12 @@ set -euo pipefail -function install-lgarron-script { - script="${1}" - script_source="${2}" +function install-scripts-bin { + dest_bin=${1} + src_bin=${2} echo "Installing: ${script}" - curl -o "/tmp/${script}" "https://raw.githubusercontent.com/lgarron/dotfiles/scripts/main/${script_source}" - sudo cp "/tmp/${script}" "/usr/bin/${script}" - sudo chmod +x "/usr/bin/${script}" + sudo cp "scripts/${src_bin}" "/usr/bin/${dest_bin}" + sudo chmod +x "/usr/bin/${dest_bin}" } function install-lgarron-script-with-completions {