From 1553ff4e942037de6f2ea0d04de1aefc29eb04e7 Mon Sep 17 00:00:00 2001 From: Benjamin Carlsson Date: Fri, 9 Jun 2023 16:37:33 -0700 Subject: [PATCH] Update functions.sh --- functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.sh b/functions.sh index 88c2519..506f74b 100644 --- a/functions.sh +++ b/functions.sh @@ -30,7 +30,7 @@ function pkginstall() { if [[ $uname == linux ]]; then if apt-get --version 1>/dev/null 2>/dev/null; then if [[ $1 == chezmoi || $1 == go ]]; then - sudo snap install --classic $1 + sudo snap install --classic $1 2>/dev/null || sudo apt-get install golang elif [[ $1 == gh && cpu == armv7l && uname == linux ]]; then type -p curl >/dev/null || (sudo apt update && sudo apt install curl -y) curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \ -- knotmirror 0.0.1