File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33set -eu
44
5+ if ! command -v wget 2>&1 > /dev/null; then
6+ echo ' Error: "wget" not found'
7+ exit 1
8+ fi
9+ if ! command -v python3 2>&1 > /dev/null; then
10+ echo ' Error: "python3" not found'
11+ exit 1
12+ fi
13+
514machine=" $( uname -m) "
615case " $machine " in
716 x86_64)
@@ -22,7 +31,7 @@ case "$machine" in
2231 ;;
2332esac
2433
25- release_blob=" $( curl -s https://api.github.com/repos/harrybrwn/dots/releases/latest) "
34+ release_blob=" $( wget -O- https://api.github.com/repos/harrybrwn/dots/releases/latest 2> /dev/null ) "
2635tag=" $(
2736 printf " %s" " $release_blob " \
2837 | python3 -c ' import sys,json; print(json.loads(sys.stdin.read())["tag_name"],end="")'
@@ -35,8 +44,8 @@ TMP="$(mktemp -d)"
3544
3645case " $ID " in
3746 arch|manjaro)
38- wget -O " $TMP /dots.tar.zst" " ${dl_url} /dots_${version} _linux_${arch} .tar.zst"
39- pacman -U --noconfirm " $TMP /dots/ tar.zst"
47+ wget -O " $TMP /dots.tar.zst" " ${dl_url} /dots_${version} _linux_${arch} .pkg. tar.zst"
48+ pacman -U --noconfirm " $TMP /dots. tar.zst"
4049 ;;
4150 debian|ubuntu|pop|linuxmint|raspbian)
4251 wget -O " $TMP /dots.deb" " ${dl_url} /dots_${version} _linux_${arch} .deb"
You can’t perform that action at this time.
0 commit comments