Update for debian to work on first install.
This commit is contained in:
KaasKop-
2023-12-26 10:39:09 +01:00
parent 9c57c14d00
commit 1e94159dbf
5 changed files with 9 additions and 69 deletions

View File

@@ -4,23 +4,20 @@
# install stow, fish, neovim, ranger, mpv(?)
# Determine the distribution name and version
OS=$(awk '/DISTRIB_ID=/' /etc/*-release | sed 's/DISTRIB_ID=//' | tr -d '"')
VERSION=$(awk '/DISTRIB_RELEASE=/' /etc/*-release | sed 's/DISTRIB_RELEASE=//' | sed 's/[.]0/./')
echo $OS
# Check the distribution name
OS=$(awk -F= '/^ID=/{print $2}' /etc/os-release | tr '[:upper:]' '[:lower:]')
case "$OS" in
"Arch")
"arch")
echo "Installing for Arch"
/usr/bin/pacman -Sy --needed stow fish neovim ranger mpv pkgfile python-pynvim wl-clipboard ninja unzip atool elinks ffmpegthumbnailer highlight imagemagick libcaca mediainfo poppler
/usr/bin/pacman -Sy --needed stow fish neovim ranger mpv pkgfile python-pynvim wl-clipboard ninja unzip atool elinks ffmpegthumbnailer highlight imagemagick libcaca mediainfo poppler lazygit
;;
"Ubuntu" | "Debian")
"ubuntu" | "debian")
echo "Installing for Ubuntu or Debian"
/usr/bin/apt-get update
curl -L "https://github.com/neovim/neovim-releases/releases/download/nightly/nvim-linux64.deb" -o /tmp/nvim-linux64.deb
/usr/bin/apt install /tmp/nvim-linux64.deb
/usr/bin/apt install ranger stow fish mpv atool caca-utils elinks highlight mediainfo poppler-util
/usr/bin/apt install ranger stow fish mpv atool caca-utils elinks highlight mediainfo poppler-utils build-essential lazygit
/usr/bin/rm /tmp/nvim-linux64.deb
;;
*)
echo "Not supported"