Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
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
1
Merge Requests
1
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
korinf
etersoft-build-utils
Commits
d221b1a4
You need to sign in or sign up before continuing.
Commit
d221b1a4
authored
Jan 24, 2026
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
common: skip script without tty
parent
dd0d945e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
rpmbb
bin/rpmbb
+1
-1
common
share/eterbuild/functions/common
+7
-2
No files found.
bin/rpmbb
View file @
d221b1a4
...
...
@@ -134,7 +134,7 @@ do
LOGFILE
=
"
$LOGDIR
/
`
basename
$NAMESRPMIN
.src.rpm
`
$MENVARG
.log"
rm
-f
$LOGFILE
$LOGFILE
.ok
#echo "Build in native system" >$LOGFILE
(
faketty
"
$ETERBUILDBIN
/rpmeterbuild
rpmbuild --commit
$ln
-bb
$LISTRPMARGS
$NODEPS
--target
$BUILDARCH
"
&&
touch
$LOGFILE
.ok
)
2>&1 |
tee
>(
stripcolors
>>
$LOGFILE
)
(
faketty
"
$ETERBUILDBIN
/rpmeterbuild
"
rpmbuild
--commit
"
$ln
"
-bb
$LISTRPMARGS
$NODEPS
--target
"
$BUILDARCH
"
&&
touch
$LOGFILE
.ok
)
2>&1 |
tee
>(
stripcolors
>>
$LOGFILE
)
[
-r
"
$LOGFILE
.ok"
]
RET
=
$?
...
...
share/eterbuild/functions/common
View file @
d221b1a4
...
...
@@ -24,10 +24,15 @@ fi
# Run command in a fake tty to preserve colored output through pipes
# Usage: faketty
"command with arguments"
# Usage: faketty
command [args...]
faketty
()
{
script
-q
-e
-c
"
$*
"
/dev/null
# script(1) requires a real tty on stdin; fall back in non-tty contexts.
if
test
-t
0
;
then
script
-q
-e
-c
"
$*
"
/dev/null
else
"
$@
"
fi
}
# Strip ANSI color codes and OSC 8 hyperlinks from input
...
...
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