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
5ffb29a4
Commit
5ffb29a4
authored
Apr 09, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit packed 3.62.2
parent
e8662361
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
epm.sh
packed/epm.sh
+0
-0
serv.sh
packed/serv.sh
+17
-7
No files found.
packed/epm.sh
View file @
5ffb29a4
This diff is collapsed.
Click to expand it.
packed/serv.sh
View file @
5ffb29a4
...
...
@@ -20,7 +20,8 @@
PROGDIR
=
$(
dirname
"
$0
"
)
PROGNAME
=
$(
basename
"
$0
"
)
[
-n
"
$EPMCURDIR
"
]
||
export
EPMCURDIR
=
"
$(
pwd
)
"
CMDSHELL
=
"/bin/bash"
CMDENV
=
"/usr/bin/env"
[
-x
"
$CMDENV
"
]
&&
CMDSHELL
=
"/usr/bin/env bash"
||
CMDSHELL
=
"
$SHELL
"
# TODO: pwd for ./epm and which for epm
[
"
$PROGDIR
"
=
"."
]
&&
PROGDIR
=
"
$EPMCURDIR
"
if
[
"
$0
"
=
"/dev/stdin"
]
||
[
"
$0
"
=
"sh"
]
;
then
...
...
@@ -33,7 +34,7 @@ SHAREDIR=$PROGDIR
# will replaced with /etc/eepm during install
CONFIGDIR
=
$PROGDIR
/../etc
EPMVERSION
=
"3.62.
1
"
EPMVERSION
=
"3.62.
2
"
# package, single (file), pipe, git
EPMMODE
=
"package"
...
...
@@ -404,7 +405,7 @@ info()
check_su_root
()
{
[
"
$BASEDISTRNAME
"
=
"alt"
]
||
return
0
#
[ "$BASEDISTRNAME" = "alt" ] || return 0
is_root
||
return
0
...
...
@@ -457,6 +458,7 @@ set_sudo()
fi
fi
else
# TODO: check user_can_sudo in https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh
# use sudo if one is tuned and tuned without password
# hack: check twice
$SUDO_CMD
-l
-n
>
/dev/null 2>/dev/null
...
...
@@ -661,7 +663,7 @@ regexp_subst()
sed
-i
-r
-e
"
$expression
"
"
$@
"
}
assure_exists
()
try_
assure_exists
()
{
local
package
=
"
$2
"
[
-n
"
$package
"
]
||
package
=
"
$(
__get_package_for_command
"
$1
"
)
"
...
...
@@ -670,9 +672,15 @@ assure_exists()
local
ask
=
''
[
-n
"
$non_interactive
"
]
||
ask
=
1
(
verbose
=
''
direct
=
''
interactive
=
$ask
epm_assure
"
$1
"
$package
$3
)
||
fatal
(
verbose
=
''
direct
=
''
interactive
=
$ask
epm_assure
"
$1
"
$package
$3
)
}
assure_exists
()
{
try_assure_exists
"
$@
"
||
fatal
}
assure_exists_erc
()
{
local
package
=
"erc"
...
...
@@ -762,8 +770,8 @@ eget()
{
# check for both
# we really need that cross here,
is_command curl
||
assure_exists wget
is_command wget
||
assure_exists curl
is_command curl
||
try_
assure_exists wget
is_command wget
||
try_
assure_exists curl
internal_tools_eget
"
$@
"
}
...
...
@@ -877,6 +885,8 @@ set_distro_info()
test_shell
[
-n
"
$SUDO_USER
"
]
&&
warning
"It is not necessary to run epm using sudo."
assure_tmpdir
set_bigtmpdir
...
...
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