Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
dd007b23
Unverified
Commit
dd007b23
authored
Mar 23, 2017
by
Jakub Sztandera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc: fix dist_get failing without failing
License: MIT Signed-off-by:
Jakub Sztandera
<
kubuxu@protonmail.ch
>
parent
2cc5ce45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
bin/dist_get
bin/dist_get
+6
-4
No files found.
bin/dist_get
View file @
dd007b23
...
...
@@ -44,7 +44,7 @@ download() {
fi
try_download
"
$dl_url
"
"
$dl_output
"
"wget '
$dl_url
' -O '
$dl_output
'"
&&
return
try_download
"
$dl_url
"
"
$dl_output
"
"curl --silent '
$dl_url
' > '
$dl_output
'"
&&
return
try_download
"
$dl_url
"
"
$dl_output
"
"curl --silent '
$dl_url
' > '
$dl_output
'"
&&
return
try_download
"
$dl_url
"
"
$dl_output
"
"fetch '
$dl_url
' -o '
$dl_output
'"
&&
return
try_download
"
$dl_url
"
"
$dl_output
"
"http '
$dl_url
' > '
$dl_output
'"
&&
return
...
...
@@ -65,7 +65,8 @@ unarchive() {
tar.gz
)
if
have_binary
tar
;
then
echo
"==> using 'tar' to extract binary from archive"
cat
"
$ua_infile
"
|
tar
-O
-z
-x
-f
-
"
$ua_distname
/
$ua_distname
"
>
"
$ua_outfile
"
<
"
$ua_infile
"
tar
-Ozxf
-
"
$ua_distname
/
$ua_distname
"
>
"
$ua_outfile
"
\
||
die
"tar has failed"
else
die
"no binary on system for extracting tar files"
fi
...
...
@@ -73,7 +74,8 @@ unarchive() {
zip
)
if
have_binary unzip
;
then
echo
"==> using 'unzip' to extract binary from archive"
unzip
-p
"
$ua_infile
"
"
$ua_distname
/
$ua_distname
"
>
"
$ua_outfile
"
unzip
-p
"
$ua_infile
"
"
$ua_distname
/
$ua_distname
"
>
"
$ua_outfile
"
\
||
die
"unzip has failed"
else
die
"no installed method for extracting .zip archives"
fi
...
...
@@ -82,7 +84,7 @@ unarchive() {
die
"unrecognized archive type '
$ua_archivetype
'"
esac
chmod
+x
"
$ua_outfile
"
chmod
+x
"
$ua_outfile
"
||
die
"chmod has failed"
}
get_go_vars
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment