Add etc/profile.d/* reading to bash package
This commit is contained in:
parent
0f99c9d9a3
commit
5b8bb72c57
@ -17,3 +17,7 @@ termux_step_pre_configure () {
|
||||
patch -p0 -i $PATCHFILE
|
||||
done
|
||||
}
|
||||
|
||||
termux_step_post_make_install () {
|
||||
sed "s|@TERMUX_PREFIX@|$TERMUX_PREFIX|" $TERMUX_PKG_BUILDER_DIR/etc-profile > $TERMUX_PREFIX/etc/profile
|
||||
}
|
||||
|
8
packages/bash/etc-profile
Normal file
8
packages/bash/etc-profile
Normal file
@ -0,0 +1,8 @@
|
||||
if [ -d @TERMUX_PREFIX@/etc/profile.d ]; then
|
||||
for i in @TERMUX_PREFIX@/etc/profile.d/*.sh; do
|
||||
if [ -r $i ]; then
|
||||
. $i
|
||||
fi
|
||||
done
|
||||
unset i
|
||||
fi
|
Loading…
Reference in New Issue
Block a user