From 9948d3d9ac445984ae237f285db06d7702bd1e54 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 4 Jul 2024 19:29:26 +0000 Subject: [PATCH] make.sh: Move PS1 to the header Signed-off-by: Michael Tremer --- make.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/make.sh b/make.sh index 23c7e9ba0f..56a097da09 100755 --- a/make.sh +++ b/make.sh @@ -45,6 +45,8 @@ ZSTD_OPT="-T0 --ultra -22" # ############################################################################### +PS1='\u:\w$ ' + # Remember if the shell is interactive or not if [ -t 0 ] && [ -t 1 ]; then INTERACTIVE=true @@ -712,8 +714,6 @@ lfsmake2() { lfsmakecommoncheck $* [ $? == 1 ] && return 0 - local PS1='\u:\w$ ' - enterchroot \ bash -x -c "cd /usr/src/lfs && \ make -f $* \ @@ -732,8 +732,6 @@ ipfiredist() { lfsmakecommoncheck $* [ $? == 1 ] && return 0 - local PS1='\u:\w$ ' - enterchroot \ bash -x -c "cd /usr/src/lfs && make -f $* LFS_BASEDIR=/usr/src dist" \ >> ${LOGFILE} 2>&1 & -- 2.47.3