Skip to content

Commit 1112183

Browse files
author
John Smith III
committed
Fixed: Application hangs when no URLS provided.
1 parent dec16bc commit 1112183

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
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.0.1] - 2024-11-23
13+
14+
### Fixed
15+
16+
- Application hangs when no URLS provided.
17+
1218
## [1.0.0] - 2024-11-23
1319

1420
### Added

noirwatch

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# App version and name
99
APP_NAME="NoirWatch"
10-
VERSION=1.0.0
10+
VERSION=1.0.1
1111
LAST_UPDATED="2024-11-23"
1212

1313
# ==============================
@@ -963,6 +963,13 @@ process_arguments() {
963963
# Override URL settings with command line options
964964
[[ -n "$CLI_URL_FILE" ]] && URL_FILE="$CLI_URL_FILE"
965965
process_urls
966+
967+
# Check if the array is empty
968+
if [ ${#URLS[@]} -eq 0 ]; then
969+
log_message "ERROR" "Error: No URLS have been provided."
970+
exit 1
971+
fi
972+
966973
[[ "$SHOW_URL" = true ]] && show_urls && exit 0
967974
}
968975

noirwatch.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH NoirWatch 1 "November 23, 2024" "Version 1.0.0" "User Commands"
1+
.TH NoirWatch 1 "November 23, 2024" "Version 1.0.1" "User Commands"
22
.SH NAME
33
NoirWatch \- Monitor specified websites for changes and send notifications.
44
.SH SYNOPSIS

0 commit comments

Comments
 (0)