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
0b5f7ffa
Commit
0b5f7ffa
authored
Apr 21, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erc: fix info about help if run with no args
parent
3b0ddb71
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
tools_erc
bin/tools_erc
+9
-7
No files found.
bin/tools_erc
View file @
0b5f7ffa
...
@@ -273,6 +273,15 @@ cmd="$1"
...
@@ -273,6 +273,15 @@ cmd="$1"
eval
lastarg
=
\$
{
$#}
eval
lastarg
=
\$
{
$#}
# Just printout help if run without args
if
[
-z
"
$cmd
"
]
;
then
print_version
echo
fatal
"Run
$ $progname
--help for get help"
fi
# if the first arg is some archive, suggest extract
# if the first arg is some archive, suggest extract
if
get_archive_type
"
$cmd
"
2>/dev/null
>
/dev/null
;
then
if
get_archive_type
"
$cmd
"
2>/dev/null
>
/dev/null
;
then
if
is_target_format
$lastarg
;
then
if
is_target_format
$lastarg
;
then
...
@@ -294,13 +303,6 @@ else
...
@@ -294,13 +303,6 @@ else
fi
fi
# Just printout help if run without args
if
[
-z
"
$cmd
"
]
;
then
print_version
echo
fatal
"Run
$ $progname
--help for get help"
fi
# TODO: Если программа-архиватор не установлена, предлагать установку с помощью epm
# TODO: Если программа-архиватор не установлена, предлагать установку с помощью epm
case
$cmd
in
case
$cmd
in
...
...
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