Skip to content

Commit 2b45624

Browse files
author
Hunter T
committed
func: increase portability through color variables
1 parent 33f2814 commit 2b45624

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

hardening/root-disabler.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
#
33
# Disable the root account.
44
#
5-
# Version: v1.0.1
5+
# Version: v1.0.2
66
# License: MIT License
77
# Copyright (c) 2020-2022 Hunter T. (StrangeRanger)
88
#
99
########################################################################################
1010

11-
red=$'\033[1;31m'
12-
nc=$'\033[0m'
11+
red="$(printf '\033[1;31m')"
12+
nc="$(printf '\033[0m')"
1313

1414
## Check if the script was executed with root privilege.
1515
if [[ $EUID = 0 ]]; then

0 commit comments

Comments
 (0)