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
627906d8
Commit
627906d8
authored
Dec 10, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit packed 3.64.44
parent
b2733bd2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
3 deletions
+34
-3
epm.sh
packed/epm.sh
+0
-0
serv.sh
packed/serv.sh
+34
-3
No files found.
packed/epm.sh
View file @
627906d8
This diff is collapsed.
Click to expand it.
packed/serv.sh
View file @
627906d8
...
...
@@ -34,7 +34,7 @@ SHAREDIR=$PROGDIR
# will replaced with /etc/eepm during install
CONFIGDIR
=
$PROGDIR
/../etc
EPMVERSION
=
"3.64.4
3
"
EPMVERSION
=
"3.64.4
4
"
# package, single (file), pipe, git
EPMMODE
=
"package"
...
...
@@ -794,18 +794,27 @@ disabled_eget()
$EGET
"
$@
"
}
sudocmd_eget
()
{
# use internal eget only if exists
if
[
-s
$SHAREDIR
/tools_eget
]
;
then
(
sudocmd
EGET_BACKEND
=
"
$eget_backend
"
$CMDSHELL
"
$SHAREDIR
"
/tools_eget
"
$@
"
)
return
fi
}
get_json_value
()
{
local
field
=
"
$1
"
echo
"
$field
"
|
grep
-q
-E
"^
\[
"
||
field
=
'["'
$field
'"]'
epm
tool json
-b
|
grep
-m1
-F
"
$field
"
|
sed
-e
's|.*
[[:space:]]||'
|
sed
-e
's|"\(.*\)"|\1|g'
epm
--quiet
tool json
-b
|
grep
-m1
-F
"
$field
"
|
sed
-e
's|.*\]
[[:space:]]||'
|
sed
-e
's|"\(.*\)"|\1|g'
}
get_json_values
()
{
local
field
=
"
$1
"
echo
"
$field
"
|
grep
-q
-E
"^
\[
"
||
field
=
"
\[
$(
echo
"
$field
"
|
sed
's/[^ ]*/"&"/g'
|
sed
's/ /,/g'
)
,[0-9]*
\]
"
epm
tool json
-b
|
grep
"^
$field
"
|
sed
-e
's|.*
[[:space:]]||'
|
sed
-e
's|"\(.*\)"|\1|g'
epm
--quiet
tool json
-b
|
grep
"^
$field
"
|
sed
-e
's|.*\]
[[:space:]]||'
|
sed
-e
's|"\(.*\)"|\1|g'
}
__epm_assure_7zip
()
...
...
@@ -1051,6 +1060,7 @@ __epm_remove_tmp_files()
if
[
-n
"
$to_clean_tmp_dirs
"
]
;
then
echo
"
$to_clean_tmp_dirs
"
|
while
read
p
;
do
[
-n
"
$p
"
]
||
continue
[
-n
"
$verbose
"
]
&&
echo
"rm -rf '
$p
'"
rm
-rf
"
$p
"
2>/dev/null
done
...
...
@@ -1058,10 +1068,18 @@ __epm_remove_tmp_files()
if
[
-n
"
$to_clean_tmp_files
"
]
;
then
echo
"
$to_clean_tmp_files
"
|
while
read
p
;
do
[
-n
"
$p
"
]
||
continue
rm
$verbose
-f
"
$p
"
2>/dev/null
done
fi
if
[
-n
"
$to_sudo_clean_tmp_files
"
]
;
then
echo
"
$to_sudo_clean_tmp_files
"
|
while
read
p
;
do
[
-n
"
$p
"
]
||
continue
sudo rm
$verbose
-f
"
$p
"
2>/dev/null
done
fi
return
0
}
...
...
@@ -1084,6 +1102,19 @@ $1"
done
}
sudo_remove_on_exit
()
{
# set trap if needed
remove_on_exit
while
[
-n
"
$1
"
]
;
do
# don't check, it can be non accessible
to_sudo_clean_tmp_files
=
"
$to_sudo_clean_tmp_files
$1
"
shift
done
}
has_space
()
{
# not for dash:
...
...
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