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
dbc43627
Commit
dbc43627
authored
Jul 15, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repack common: implement is_abs_path()
parent
edd8e5ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
common.sh
repack.d/common.sh
+5
-1
No files found.
repack.d/common.sh
View file @
dbc43627
...
...
@@ -31,6 +31,10 @@ subst()
}
fi
is_abs_path
()
{
echo
"
$1
"
|
grep
-q
"^/"
}
# Remove file from the file system and from spec
# Usage: remove_file <path_to_file>
...
...
@@ -146,7 +150,7 @@ install_file()
if
is_url
"
$src
"
;
then
epm tool eget
-O
"
$BUILDROOT$dest
"
"
$src
"
||
fatal
"Can't download
$src
to install to
$dest
"
elif
echo
"
$src
"
|
grep
-q
"^/
"
;
then
elif
is_abs_path
"
$src
"
;
then
cp
"
$BUILDROOT
/
$src
"
"
$BUILDROOT
/
$dest
"
||
return
else
cp
"
$src
"
"
$BUILDROOT
/
$dest
"
||
return
...
...
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