Skip to content

Commit 16ea2c4

Browse files
committed
Fixed: Minor variable protections
1 parent 37039c5 commit 16ea2c4

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.3.2] - 2024-12-30
13+
14+
### Fixed
15+
16+
- Minor variable protections
17+
1218
## [1.3.1] - 2024-12-20
1319

1420
### Added

noirwatch

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

88
# App version and name
9-
APP_NAME="NoirWatch"
10-
VERSION=1.3.1
11-
LAST_UPDATED="2024-12-20"
9+
readonly APP_NAME="NoirWatch"
10+
readonly VERSION=1.3.2
11+
readonly LAST_UPDATED="2024-12-30"
1212

1313
# TODO:
1414
# - Add more notification methods (email, slack, discord, etc.)
@@ -66,7 +66,7 @@ DESKTOP_NOTIFICATION=false
6666

6767
# Log levels
6868
# Define log levels directly as an associative array
69-
declare -A LOG_LEVELS_MAP=(
69+
readonly declare -A LOG_LEVELS_MAP=(
7070
["FATAL"]=0
7171
["ERROR"]=1
7272
["WARN"]=2
@@ -80,15 +80,15 @@ VERBOSE=false
8080
SYSTEM_NAME=""
8181

8282
# ANSI color codes
83-
RED='\033[0;31m'
84-
RED_BG='\033[41m'
85-
GREEN='\033[0;32m'
86-
GREEN_BG='\033[42m'
87-
YELLOW='\033[1;33m'
88-
YELLOW_BG='\033[43m'
89-
ORANGE='\033[0;33m'
90-
ORANGE_BG='\033[43m'
91-
NC='\033[0m' # No Color
83+
readonly RED='\033[0;31m'
84+
readonly RED_BG='\033[41m'
85+
readonly GREEN='\033[0;32m'
86+
readonly GREEN_BG='\033[42m'
87+
readonly YELLOW='\033[1;33m'
88+
readonly YELLOW_BG='\033[43m'
89+
readonly ORANGE='\033[0;33m'
90+
readonly ORANGE_BG='\033[43m'
91+
readonly NC='\033[0m' # No Color
9292

9393
# ==============================
9494
# Utility Functions

noirwatch.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH NOIRWATCH 1 "December 20, 2024" "NoirWatch 1.3.1" "User Commands"
1+
.TH NOIRWATCH 1 "December 30, 2024" "NoirWatch 1.3.2" "User Commands"
22
.SH NAME
33
NoirWatch \- Monitor specified websites for changes and send notifications.
44
.SH SYNOPSIS

0 commit comments

Comments
 (0)