Skip to content

Commit a5ce017

Browse files
committed
refactor(get.sh): simplify tr, comment-out redundant curl
1 parent bee542e commit a5ce017

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

get.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/env bash
22

3-
JSON=`curl -s 'https://api.github.com/repos/lautarodragan/jolteon/releases/latest'`
3+
# JSON=`curl -s 'https://api.github.com/repos/lautarodragan/jolteon/releases/latest'`
44

55
# URLS=`echo "$JSON" | jq -r ".assets[].browser_download_url"`
6-
URLS=`curl -s 'https://api.github.com/repos/lautarodragan/jolteon/releases/latest' | grep "browser_download_url" | cut -d: -f2- | tr -d ' ' | tr -d '"'`
6+
URLS=`curl -s 'https://api.github.com/repos/lautarodragan/jolteon/releases/latest' | grep "browser_download_url" | cut -d: -f2- | tr -d ' "'`
77

88
DOWNLOAD_URL=""
99
if [[ "$OSTYPE" == "linux-gnu"* ]]; then

0 commit comments

Comments
 (0)