Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
epmgpi
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
Ximper Linux
epmgpi
Commits
288e7339
Commit
288e7339
authored
Apr 20, 2024
by
Roman Alifanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small fix
parent
7a38943e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
20 deletions
+24
-20
epmgpi
bin/epmgpi
+24
-20
No files found.
bin/epmgpi
View file @
288e7339
...
@@ -133,7 +133,7 @@ show_help() {
...
@@ -133,7 +133,7 @@ show_help() {
main
()
{
main
()
{
local
PKG_PATH
local
PKG_PATH
local
FILE_PATH
local
FILE_PATH
FILE_PATH
=
"
$
(
realpath
"
$1
"
)
"
FILE_PATH
=
"
$
1
"
# Проверка и вызов окна выбора файлов, если PKG_PATH не установлен
# Проверка и вызов окна выбора файлов, если PKG_PATH не установлен
if
[[
-z
"
$FILE_PATH
"
]]
;
then
if
[[
-z
"
$FILE_PATH
"
]]
;
then
echo
"Путь к пакету не указан. Вызов функции выбора пакета..."
echo
"Путь к пакету не указан. Вызов функции выбора пакета..."
...
@@ -159,22 +159,25 @@ main() {
...
@@ -159,22 +159,25 @@ main() {
fi
fi
}
}
# Обработка аргументов перед вызовом main
if
[[
$#
-eq
0
]]
;
then
while
[[
$#
-gt
0
]]
;
do
main | epmgpi_logging
case
"
$1
"
in
else
--help
|
-h
)
# Обработка аргументов
show_help
while
[[
$#
-gt
0
]]
;
do
exit
0
case
"
$1
"
in
;;
--help
|
-h
)
--version
|
-v
)
show_help
echo
"Версия 1.3"
exit
0
exit
0
;;
;;
--version
|
-v
)
*
)
echo
"Версия 1.4"
echo
"Переданы аргументы:
$1
"
exit
0
main
"
$(
realpath
"
$1
"
)
"
| epmgpi_logging
;;
shift
*
)
;;
echo
"Переданы аргументы:
$1
"
esac
main
"
$(
realpath
"
$1
"
)
"
| epmgpi_logging
done
shift
;;
esac
done
fi
\ No newline at end of file
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