dotfiles/unprocessed/termux/scripts/tsu.old

7 lines
314 B
Plaintext
Raw Permalink Normal View History

2018-05-19 13:48:47 +02:00
#!/data/data/com.termux/files/usr/bin/env bash
# Force the passing of the environment variables on LineageOS where the --preserve-environment
# option on the su binary doesn't seem to work well
/data/data/com.termux/files/usr/bin/tsu -s "$(env | sed "s/^\([^=]\+\)=\(.*\)/\1='\2'/" | tr '\n' ' ') $(which bash)"