xbps-src: always generate xbps-shell with a proper PATH. Bump version.
This commit is contained in:
parent
5c0c5fd5b4
commit
a7059483f5
2 changed files with 7 additions and 7 deletions
|
@ -101,8 +101,6 @@ _EOF
|
|||
fi
|
||||
fi
|
||||
|
||||
[ -s $XBPS_MASTERDIR/bin/xbps-shell ] && return 0
|
||||
|
||||
# Create custom script to start the chroot bash shell.
|
||||
cat > $XBPS_MASTERDIR/bin/xbps-shell <<_EOF
|
||||
#!/bin/sh
|
||||
|
@ -111,6 +109,10 @@ _EOF
|
|||
. /usr/local/share/xbps-src/shutils/init_funcs.sh
|
||||
set_defvars
|
||||
|
||||
PATH=/tools/bin:/usr/local/sbin:/bin:/usr/bin:/sbin
|
||||
PATH=\$PATH:/usr/local/bin:/usr/lib/perl5/core_perl/bin
|
||||
export PATH
|
||||
|
||||
exec env PS1="[\u@masterdir-chroot \W]$ " /bin/bash
|
||||
_EOF
|
||||
chmod 755 $XBPS_MASTERDIR/bin/xbps-shell
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue