Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
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
etersoft
eepm
Commits
ab9e1f0c
Commit
ab9e1f0c
authored
3 months ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EGET_BACKEND: add support for abs path to the command
parent
9b27adf5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
tools_eget
bin/tools_eget
+11
-2
No files found.
bin/tools_eget
View file @
ab9e1f0c
...
...
@@ -902,6 +902,8 @@ WGET="$(print_command_path wget)"
CURL
=
"
$(
print_command_path curl
)
"
ORIG_EGET_BACKEND
=
"
$EGET_BACKEND
"
EGET_BACKEND
=
"
$(
basename
"
$EGET_BACKEND
"
)
"
# override backend
if
is_fileurl
"
$1
"
;
then
EGET_BACKEND
=
"file"
...
...
@@ -909,13 +911,20 @@ elif is_ipfsurl "$1" ; then
EGET_BACKEND
=
"ipfs"
fi
case
"
$EGET_BACKEND
"
in
case
"
$ORIG_EGET_BACKEND
"
in
file|ipfs
)
;;
*
/wget
)
WGET
=
"
$ORIG_EGET_BACKEND
"
[
-x
"
$WGET
"
]
||
fatal
"There are no
$ORIG_EGET_BACKEND
in the system but you forced using it via EGET_BACKEND. Install it with
$
epm install wget"
;;
wget
)
[
-n
"
$WGET
"
]
||
fatal
"There are no wget in the system but you forced using it via EGET_BACKEND. Install it with
$
epm install wget"
;;
*
/curl
)
CURL
=
"
$ORIG_EGET_BACKEND
"
[
-x
"
$CURL
"
]
||
fatal
"There are no
$ORIG_EGET_BACKEND
in the system but you forced using it via EGET_BACKEND. Install it with
$
epm install curl"
;;
curl
)
[
-n
"
$CURL
"
]
||
fatal
"There are no curl in the system but you forced using it via EGET_BACKEND. Install it with
$
epm install curl"
;;
...
...
This diff is collapsed.
Click to expand it.
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