File tree 2 files changed +16
-14
lines changed
2 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -178,19 +178,20 @@ fancy_echo "Installing the heroku-config plugin to pull config variables locally
178
178
heroku plugins:install git://github.com/ddollar/heroku-config.git
179
179
# ## end linux-components/heroku
180
180
181
- # fancy_echo "Installing GitHub CLI client ..."
181
+ fancy_echo " Installing GitHub CLI client ..."
182
182
version=" $( curl https://github.com/jingweno/gh/releases/latest -s | cut -d' v' -f2 | cut -d' "' -f1) "
183
183
184
- if uname -m | grep -Fq " x86_64" ; then
185
- arch=" amd64"
184
+ if uname -m | grep -Fq ' x86_64' ; then
185
+ arch=' amd64'
186
186
else
187
- arch=" i386"
187
+ arch=' i386'
188
188
fi
189
189
190
+ cd /tmp
190
191
url=" https://github.com/jingweno/gh/releases/download/v${version} /gh_${version} _${arch} .deb"
191
- curl " $url " -sLo ~ /.bin/ gh.deb
192
- sudo dpkg -i ~ /.bin/ gh.deb
193
- chmod +x ~ /.bin/gh
192
+ curl " $url " -sLo gh.deb
193
+ sudo dpkg -i gh.deb
194
+ cd -
194
195
# ## end linux-components/github
195
196
196
197
fancy_echo " Installing rcm, to manage your dotfiles ..."
Original file line number Diff line number Diff line change 1
- # fancy_echo "Installing GitHub CLI client ..."
1
+ fancy_echo "Installing GitHub CLI client ..."
2
2
version="$(curl https://github.com/jingweno/gh/releases/latest -s | cut -d'v' -f2 | cut -d'"' -f1)"
3
3
4
- if uname -m | grep -Fq " x86_64" ; then
5
- arch=" amd64"
4
+ if uname -m | grep -Fq ' x86_64' ; then
5
+ arch=' amd64'
6
6
else
7
- arch=" i386"
7
+ arch=' i386'
8
8
fi
9
9
10
+ cd /tmp
10
11
url="https://github.com/jingweno/gh/releases/download/v${version}/gh_${version}_${arch}.deb"
11
- curl "$url" -sLo ~/.bin/ gh.deb
12
- sudo dpkg -i ~/.bin/ gh.deb
13
- chmod +x ~/.bin/gh
12
+ curl "$url" -sLo gh.deb
13
+ sudo dpkg -i gh.deb
14
+ cd -
You can’t perform that action at this time.
0 commit comments