- A bash script command file from the ohms-bash-core repository.
- Designed to overcome if this command is used in a script as a replacement to sudo
- so that if the script runs on a linux instance that does not use or have
sudo installed,
- then the command that is being used to run under sudo will continue to be executed without the sudo command.
#!/bin/bash
# Version - 1.0.0 - rc
prog="$*"
usage $0 sudo_comm $prog || exit 1
sudo=sudo
`command -v $sudo` $prog
|