Skip to content

Commit

Permalink
lint shell ok
Browse files Browse the repository at this point in the history
  • Loading branch information
Ant0wan committed Oct 20, 2023
1 parent 4292325 commit 80d105c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
set -o errexit
_prompt() {
wget -q -O - https://raw.githubusercontent.com/lotabout/skim/master/install | sh
info="$(curl https://api.github.com/repos/sharkdp/bat/releases/latest | jq .tag_name,.id -r)"
#tag="$(echo "$info" | awk -F ' ' '{ print $1 }')"
id="$(echo "$info" | awk -F ' ' '{ print $2 }')"
info=$(curl https://api.github.com/repos/sharkdp/bat/releases/latest | jq .tag_name,.id -r)
id="$(echo "$info" | awk 'NR==2')"
pkgs="$(curl "https://api.github.com/repos/sharkdp/bat/releases/${id}/assets" | jq .[].name -r)"
kernel="$(uname -s | awk '{print tolower($0)}')"
arch="$(uname -m)"
Expand Down

0 comments on commit 80d105c

Please sign in to comment.