Skip to content

Commit 1a29898

Browse files
committed
Fixed: Minor variable protections
1 parent 742dbba commit 1a29898

File tree

3 files changed

+20
-14
lines changed

3 files changed

+20
-14
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
- none
1111

12+
## [1.4.1] - 2024-12-30
13+
14+
### Fixed
15+
16+
- Minor variable protections
17+
1218
## [1.4.0] - 2024-12-17
1319

1420
### Added

noirnet

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
# License: MIT License
66

77
# App version and name
8-
APP_NAME="NoirNet"
9-
VERSION=1.4.0
10-
LAST_UPDATED="2024-12-17"
8+
readonly APP_NAME="NoirNet"
9+
readonly VERSION=1.4.1
10+
readonly LAST_UPDATED="2024-12-30"
1111

1212
# TODO:
1313
# - Add more notification methods (email, slack, discord, etc.)
@@ -69,7 +69,7 @@ DESKTOP_NOTIFICATION=false
6969

7070
# Log levels
7171
# Define log levels directly as an associative array
72-
declare -A LOG_LEVELS_MAP=(
72+
readonly declare -A LOG_LEVELS_MAP=(
7373
["FATAL"]=0
7474
["ERROR"]=1
7575
["WARN"]=2
@@ -83,15 +83,15 @@ VERBOSE=false
8383
SYSTEM_NAME=""
8484

8585
# ANSI color codes
86-
RED='\033[0;31m'
87-
RED_BG='\033[41m'
88-
GREEN='\033[0;32m'
89-
GREEN_BG='\033[42m'
90-
YELLOW='\033[1;33m'
91-
YELLOW_BG='\033[43m'
92-
ORANGE='\033[0;33m'
93-
ORANGE_BG='\033[43m'
94-
NC='\033[0m' # No Color
86+
readonly RED='\033[0;31m'
87+
readonly RED_BG='\033[41m'
88+
readonly GREEN='\033[0;32m'
89+
readonly GREEN_BG='\033[42m'
90+
readonly YELLOW='\033[1;33m'
91+
readonly YELLOW_BG='\033[43m'
92+
readonly ORANGE='\033[0;33m'
93+
readonly ORANGE_BG='\033[43m'
94+
readonly NC='\033[0m' # No Color
9595

9696
# ==============================
9797
# Utility Functions

noirnet.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH NOIRNET 1 "December 17, 2024" "Version 1.3.1" "User Commands"
1+
.TH NOIRNET 1 "December 30, 2024" "Version 1.4.1" "User Commands"
22
.SH NAME
33
NoirNet \- Monitors internet and DNS access and sends notifications.
44

0 commit comments

Comments
 (0)