From c80c6aa98f9480b9222366e2586ea6fd8b5b2033 Mon Sep 17 00:00:00 2001 From: dece Date: Thu, 9 Jun 2022 21:39:05 +0200 Subject: [PATCH] update-manually-installed-software: removed --- update-manually-installed-software.sh | 44 --------------------------- 1 file changed, 44 deletions(-) delete mode 100755 update-manually-installed-software.sh diff --git a/update-manually-installed-software.sh b/update-manually-installed-software.sh deleted file mode 100755 index fe4e17f..0000000 --- a/update-manually-installed-software.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/zsh -e -# Short Zsh script to compare some of my manually installed software against -# what is apparently available on Github, PyPI or whatever remote hell. -# Requires curl. - -GH="https://github.com" -GH_TAIL="releases/latest" - -get_latest_tag() { - redirect="$(curl "$1" -v 2>&1 | grep "^< location:")" - echo "${redirect##*/}" -} - -check_neovim() { - echo "# Neovim" - echo "Installed: $(nvim -v | head -n 1)" - echo "Available: $(get_latest_tag "$GH/neovim/neovim/$GH_TAIL")" -} - -check_alacritty() { - echo "# Alacritty" - echo "Installed: $(alacritty -V)" - echo "Available: $(get_latest_tag "$GH/alacritty/alacritty/$GH_TAIL")" -} - -check_cheat() { - echo "# Cheat" - echo "Installed: $(cheat -v)" - echo "Available: $(get_latest_tag "$GH/cheat/cheat/$GH_TAIL")" -} - -check_python_packages() { - echo "# Python user packages" - # For some reason different order of arguments makes pip crash on some - # systems… Not going to bother here. - pip3 list --user -o 2> /dev/null \ - || pip3 list -o --user 2> /dev/null \ - || echo "Failure…" -} - -(( $+commands[nvim] )) && check_neovim -(( $+commands[alacritty] )) && check_alacritty -(( $+commands[cheat] )) && check_cheat -(( $+commands[pip3] )) && check_python_packages