* texlive: use bash instead of sh in preinst scripts
* texlive: remove old trailing comment
* texlive: use bash instead of sh in postinst and prerm scripts.
sh doesn't support "mkdir folder1/{folder2,folder3}" and similar.
* texlive: export TMPDIR in postinst so that fresh installation will work also in ssh shell
# Clean texlive's folder if needed (run on fresh install)
# Clean texlive's folder if needed (run on fresh install)
echo"#!$TERMUX_PREFIX/bin/sh" > preinst
echo"#!$TERMUX_PREFIX/bin/bash" > preinst
echo"if [ ! -f $TERMUX_PREFIX/opt/texlive/2016/install-tl -a ! -f $TERMUX_PREFIX/opt/texlive/2017/install-tl ]; then exit 0; else echo 'Removing residual files from old version of TeX Live for Termux'; fi" >> preinst
echo"if [ ! -f $TERMUX_PREFIX/opt/texlive/2016/install-tl -a ! -f $TERMUX_PREFIX/opt/texlive/2017/install-tl ]; then exit 0; else echo 'Removing residual files from old version of TeX Live for Termux'; fi" >> preinst
# Clean texlive's folder if needed (run on upgrade)
# Clean texlive's folder if needed (run on upgrade)
echo"#!$TERMUX_PREFIX/bin/sh" > preinst
echo"#!$TERMUX_PREFIX/bin/bash" > preinst
echo"if [ ! -f $TERMUX_PREFIX/opt/texlive/2016/install-tl -a ! -f $TERMUX_PREFIX/opt/texlive/2017/install-tl ]; then exit 0; else echo 'Removing residual files from old version of TeX Live for Termux'; fi" >> preinst
echo"if [ ! -f $TERMUX_PREFIX/opt/texlive/2016/install-tl -a ! -f $TERMUX_PREFIX/opt/texlive/2017/install-tl ]; then exit 0; else echo 'Removing residual files from old version of TeX Live for Termux'; fi" >> preinst