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
a777b2fc
Commit
a777b2fc
authored
Feb 01, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-sh-functions: print distr name/version in every error message
parent
5192bf9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
epm-sh-functions
bin/epm-sh-functions
+10
-8
No files found.
bin/epm-sh-functions
View file @
a777b2fc
...
...
@@ -367,16 +367,21 @@ message()
echog
"
$*
"
}
# Print error message and stop the program
fatal
()
__promo_message
()
{
local
PROMOMESSAGE
=
"
$EPMPROMOMESSAGE
"
[
-n
"
$PROMOMESSAGE
"
]
||
PROMOMESSAGE
=
" (you can discuss the epm
$EPMVERSION
problem in Telegram: https://t.me/useepm)"
[
-n
"
$PROMOMESSAGE
"
]
||
PROMOMESSAGE
=
" (you can discuss this problem (epm
$EPMVERSION
on
$DISTRNAME
/
$DISTRVERSION
) in Telegram: https://t.me/useepm)"
echo
"
$PROMOMESSAGE
"
}
# Print error message and stop the program
fatal
()
{
set_color
$RED
>
&2
echog
-n
"ERROR: "
>
&2
restore_color
>
&2
echog
"
$*
$
PROMOMESSAGE
"
>
&2
echog
"
$*
$
(
__promo_message
)
"
>
&2
# [ "$TERM" = "screen" ] && echo "(screen detected: waiting ten seconds to exit ...)" >&2 && sleep 10
exit
1
}
...
...
@@ -384,13 +389,10 @@ fatal()
# Print error message and stop the program, skippimg translate
fixme
()
{
local
PROMOMESSAGE
=
"
$EPMPROMOMESSAGE
"
[
-n
"
$PROMOMESSAGE
"
]
||
PROMOMESSAGE
=
" (you can discuss the epm
$EPMVERSION
problem in Telegram: https://t.me/useepm)"
set_color
$RED
>
&2
echo
-n
"ERROR: "
>
&2
restore_color
>
&2
echo
"
$*
$PROMOMESSAGE
"
>
&2
echo
g
"
$*
$(
__promo_message
)
"
>
&2
# [ "$TERM" = "screen" ] && echo "(screen detected: waiting ten seconds to exit ...)" >&2 && sleep 10
exit
1
}
...
...
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