]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
make.sh: Move PS1 to the header
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 4 Jul 2024 19:29:26 +0000 (19:29 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 8 Jul 2024 15:39:43 +0000 (15:39 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index 23c7e9ba0ff074bcc40a2c8028cc798cee865093..56a097da09be2d0db4d245e6d6aee1ad529f9efa 100755 (executable)
--- 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 &