#!/bin/bash if [ "$( id -u -n )" != "$( basename $0 )" ] then sudo -u $( basename $0 ) $0 $@ exit $? fi $( realpath -L $0|sed 's/\.wrapper$//' ) $@