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
c2cfe779
Commit
c2cfe779
authored
Oct 24, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use has_space from estrlist (works with dash)
parent
02830158
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
epm-sh-functions
bin/epm-sh-functions
+1
-1
test_smallfuncs.sh
tests/test_smallfuncs.sh
+5
-1
No files found.
bin/epm-sh-functions
View file @
c2cfe779
...
@@ -629,5 +629,5 @@ get_pkg_name_delimiter()
...
@@ -629,5 +629,5 @@ get_pkg_name_delimiter()
has_space
()
has_space
()
{
{
[
"
$1
"
!=
"
${
1
/ //
}
"
]
estrlist has_space
"
$@
"
}
}
tests/test_smallfuncs.sh
View file @
c2cfe779
#!/bin/sh
#!/bin/sh
#. ../bin/epm-sh-functions
has_space
()
has_space
()
{
{
[
"
$1
"
!=
"
${
1
/ //
}
"
]
../bin/tools_estrlist has_space
"
$@
"
}
}
notok
()
notok
()
...
@@ -19,8 +20,11 @@ ok()
...
@@ -19,8 +20,11 @@ ok()
notok
"list"
notok
"list"
ok
"l i s t"
ok
"l i s t"
ok
"li st"
ok
" l i s t "
ok
" l i s t "
ok
" l "
ok
" l "
ok
" "
ok
" "
ok
" "
ok
" "
notok
""
notok
""
notok
"http://updates.etersoft.ru/pub/Korinf/x86_64/Ubuntu/20.04/eepm_*.deb"
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