Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
eget
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
eget
Commits
d11517e0
Commit
d11517e0
authored
Mar 30, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eget: fix --check
parent
c47060c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
eget
eget
+8
-5
No files found.
eget
View file @
d11517e0
...
...
@@ -211,13 +211,10 @@ if [ "$1" = "--list" ] ; then
fi
if
[
"
$1
"
=
"--check"
]
;
then
set_quiet
CHECKURL
=
"
$1
"
shift
check_url_is_accessible
"
$1
"
exit
fi
LATEST
=
''
if
[
"
$1
"
=
"--latest"
]
;
then
LATEST
=
"
$1
"
...
...
@@ -366,7 +363,7 @@ fi
# -P support
if
[
-z
"
$1
"
]
;
then
echo
"eget - wget like downloader wrapper with wildcard support"
>
&2
echo
"eget - wget like downloader wrapper with wildcard support
, uses wget or curl as backend
"
>
&2
fatal
"Run
$0
--help to get help"
fi
...
...
@@ -409,6 +406,12 @@ get_github_urls()
grep
-i
-o
-E
'"browser_download_url": "https://.*"'
|
cut
-d
'"'
-f4
}
if
[
-n
"
$CHECKURL
"
]
;
then
set_quiet
check_url_is_accessible
"
$1
"
exit
fi
if
echo
"
$1
"
|
grep
-q
"^https://github.com/"
&&
\
echo
"
$1
"
|
grep
-q
-v
"/download/"
&&
[
-n
"
$2
"
]
;
then
MASK
=
"
$2
"
...
...
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