system/ksh-openbsd: Stop script from hanging if run in background.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2023-08-11 04:25:56 -04:00 committed by Willy Sudiarto Raharjo
parent e3ba7b0acd
commit cef5f9a77d
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 8 additions and 1 deletions

View File

@ -82,7 +82,14 @@ find -L . \
-exec chmod 644 {} \+
CFLAGS="$SLKCFLAGS $(getconf LFS_CFLAGS)" make
make check
# 20230810 bkw: tired of this thing hanging when run in the background
# as part of a long queue.
case "$(ps -o stat= -p $$)" in
*+*) make check ;; # running in foreground
*) echo '*** Not running "make check" because we are in the background.' ;;
esac
make install DESTDIR=$PKG
if [ -n "${PDKSH_BINNAME}" ];then