Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
A
asdf-ripgrep
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
Show more breadcrumbs
Gerard Hickey
asdf-ripgrep
Commits
810f5982
There was an error fetching the commit references. Please try again later.
Commit
810f5982
authored
3 years ago
by
Gerard Hickey
Browse files
Options
Downloads
Patches
Plain Diff
Added local directives back into install script
parent
cd135b8e
No related branches found
No related tags found
No related merge requests found
Pipeline
#325427194
passed
3 years ago
Stage: lint
Stage: test
Stage: notify
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/install
+6
-6
6 additions, 6 deletions
bin/install
with
6 additions
and
6 deletions
bin/install
+
6
−
6
View file @
810f5982
...
...
@@ -13,7 +13,7 @@ install_ripgrep() {
local
version
=
$2
local
install_path
=
$3
local
bin_install_path
=
"
$install_path
/bin"
download_url
=
"
$(
get_download_url
"
$version
"
)
"
local
download_url
;
download_url
=
"
$(
get_download_url
"
$version
"
)
"
mkdir
-p
"
${
bin_install_path
}
"
...
...
@@ -28,8 +28,8 @@ install_ripgrep() {
}
get_arch
()
{
arch
=
$(
uname
-m
|
tr
'[:upper:]'
'[:lower:]'
)
platform
=
"
$(
get_platform
)
"
local arch
;
arch
=
$(
uname
-m
|
tr
'[:upper:]'
'[:lower:]'
)
local
platform
;
platform
=
"
$(
get_platform
)
"
case
${
arch
}
in
arm64
)
if
[
"
$platform
"
=
"apple-darwin"
]
;
then
...
...
@@ -44,7 +44,7 @@ get_arch() {
}
get_platform
()
{
plat
=
$(
uname
|
tr
'[:upper:]'
'[:lower:]'
)
local
plat
;
plat
=
$(
uname
|
tr
'[:upper:]'
'[:lower:]'
)
case
${
plat
}
in
darwin
)
plat
=
'apple-darwin'
...
...
@@ -62,8 +62,8 @@ get_platform() {
get_download_url
()
{
local
version
=
"
$1
"
arch
=
"
$(
get_arch
)
"
platform
=
"
$(
get_platform
)
"
local arch
;
arch
=
"
$(
get_arch
)
"
local
platform
;
platform
=
"
$(
get_platform
)
"
echo
"https://github.com/BurntSushi/ripgrep/releases/download/
${
version
}
/ripgrep-
${
version
}
-
${
arch
}
-
${
platform
}
.tar.gz"
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment