#!/bin/sh if [ $(id -u) -ne 0 ]; then echo "(E) Only root can use this script." >&2 exit 1 fi # tluser must use the TeX Live binaries rather than the system's ones. export PATH=/opt/texlive/bin/i386-linux:/bin:/usr/bin exec sudo -u tluser tlmgr "$@"