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
38c1ca7e
Commit
38c1ca7e
authored
Nov 24, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm: move check option to separate function
parent
00fcfd5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
epm
bin/epm
+17
-8
No files found.
bin/epm
View file @
38c1ca7e
...
...
@@ -176,13 +176,14 @@ check_command()
;;
*
)
return
1
;;
esac
return
0
}
for
opt
in
"
$@
"
;
do
check_command
$opt
&&
continue
case
$
opt
in
check_option
()
{
case
$
1
in
-h
|
--help
|
help
)
# HELPOPT: this help
phelp
exit
0
...
...
@@ -213,13 +214,21 @@ for opt in "$@" ; do
non_interactive
=
1
;;
*
)
if
[
-f
"
$opt
"
]
;
then
pkg_files
=
"
$pkg_files
$opt
"
else
pkg_names
=
"
$pkg_names
$opt
"
fi
return
1
;;
esac
return
0
}
for
opt
in
"
$@
"
;
do
check_command
$opt
&&
continue
check_option
$opt
&&
continue
if
[
-f
"
$opt
"
]
;
then
pkg_files
=
"
$pkg_files
$opt
"
else
pkg_names
=
"
$pkg_names
$opt
"
fi
done
pkg_files
=
$(
strip_spaces
"
$pkg_files
"
)
...
...
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