#/bin/bash if [ "$#" -eq 0 ]; then sudo /usr/bin/clpctlWrapper $@ else args=$(printf ' "%q"' "$@") bash -c "sudo /usr/bin/clpctlWrapper $args" fi