Removed MYNAME variable

Preferring to just use the value of $0 instead
This commit is contained in:
James Conroy
2022-02-08 20:42:45 -06:00
parent 7f694c17ed
commit daa73c8845

View File

@@ -15,7 +15,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
MYNAME="${0##*/}"
display_help() {
cat <<HELP_USAGE
@@ -295,7 +294,7 @@ is_tty() {
}
if ! [ "$(id -u)" = 0 ]; then
echo "${MYNAME}: This command must be run as root"
echo "${0}: This command must be run as root"
fi
while getopts ':hq' OPTION; do