Skip to content

Commit

Permalink
fix(linux): fix install script
Browse files Browse the repository at this point in the history
  • Loading branch information
natelandau committed Jan 20, 2025
1 parent c9eb1a5 commit f766c4a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,18 @@ debug "Skipping binary installation of {{ $binary.name }} for non personal compu

{{ end }}


if [[ ! $(command -v uv) ]]; then
warning "Please install 'uv' to run the binary installation script."
_safeExit_
fi

if [[ ! -e "{{ .directories.user_bin_dir }}/install-binary.py" ]]; then
if [[ ! -e "${HOME}/bin/install-binary.py" ]]; then
warning "The binary installation script is missing. Rerun chezmoi to generate it."
_safeExit_
fi

if ! uv run -q {{ .directories.user_bin_dir }}/install-binary.py --binary-name="{{ $binary.name }}" --repository="{{ $binary.repository }}" --version-regex="{{ $binary.version_regex }}" --remove-from-release="{{ $binary.remove_from_release }}" --executable-name="{{ $binary.executable_name }}" --description="{{ $binary.description }}"; then
if ! uv run -q ${HOME}/bin/install-binary.py --binary-name="{{ $binary.name }}" --repository="{{ $binary.repository }}" --version-regex="{{ $binary.version_regex }}" --remove-from-release="{{ $binary.remove_from_release }}" --executable-name="{{ $binary.executable_name }}" --description="{{ $binary.description }}"; then
error "Could not install {{ $binary.name }}. Review error messages above."
fi

Expand Down

0 comments on commit f766c4a

Please sign in to comment.