FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python/bin/fetch-configlet at master · mweb/python · GitHub
mweb
python
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python
/
bin
/
fetch-configlet
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
32 lines (27 loc) · 640 Bytes
Breadcrumbs
python
/
bin
/
fetch-configlet
Copy path
File metadata and controls
executable file
·
32 lines (27 loc) · 640 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!
/bin/bash
LATEST=https://github.com/exercism/configlet/releases/latest
OS=
$(
case
$(
uname
)
in
(Darwin
*
)
echo
"
mac
"
;;
(Linux
*
)
echo
"
linux
"
;;
(Windows
*
)
echo
"
windows
"
;;
(
*
)
echo
"
linux
"
;;
esac)
ARCH=
$(
case
$(
uname -m
)
in
(
*
64
*
)
echo
64bit;;
(
*
686
*
)
echo
32bit;;
(
*
386
*
)
echo
32bit;;
(
*
)
echo
64bit;;
esac)
VERSION=
"
$(
curl --head --silent
$LATEST
|
awk -v FS=/
'
/Location:/{print $NF}
'
|
tr -d
'
\r
'
)
"
URL=https://github.com/exercism/configlet/releases/download/
$VERSION
/configlet-
$OS
-
${ARCH}
.tgz
curl -s --location
$URL
|
tar xz -C bin/
Back
|
FazBrowse Home
|
New Git URL