mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Removed MYNAME variable
Preferring to just use the value of $0 instead
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user