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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
epm
bin/epm
+14
-5
No files found.
bin/epm
View file @
38c1ca7e
...
@@ -176,13 +176,14 @@ check_command()
...
@@ -176,13 +176,14 @@ check_command()
;;
;;
*
)
*
)
return
1
return
1
;;
esac
esac
return
0
return
0
}
}
for
opt
in
"
$@
"
;
do
check_option
()
check_command
$opt
&&
continue
{
case
$
opt
in
case
$
1
in
-h
|
--help
|
help
)
# HELPOPT: this help
-h
|
--help
|
help
)
# HELPOPT: this help
phelp
phelp
exit
0
exit
0
...
@@ -213,13 +214,21 @@ for opt in "$@" ; do
...
@@ -213,13 +214,21 @@ for opt in "$@" ; do
non_interactive
=
1
non_interactive
=
1
;;
;;
*
)
*
)
return
1
;;
esac
return
0
}
for
opt
in
"
$@
"
;
do
check_command
$opt
&&
continue
check_option
$opt
&&
continue
if
[
-f
"
$opt
"
]
;
then
if
[
-f
"
$opt
"
]
;
then
pkg_files
=
"
$pkg_files
$opt
"
pkg_files
=
"
$pkg_files
$opt
"
else
else
pkg_names
=
"
$pkg_names
$opt
"
pkg_names
=
"
$pkg_names
$opt
"
fi
fi
;;
esac
done
done
pkg_files
=
$(
strip_spaces
"
$pkg_files
"
)
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