File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed
Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 77
88# App version and name
99APP_NAME=" NoirWatch"
10- VERSION=1.0.0
10+ VERSION=1.0.1
1111LAST_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
Original file line number Diff line number Diff line change 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
33NoirWatch \- Monitor specified websites for changes and send notifications.
44.SH SYNOPSIS
You can’t perform that action at this time.
0 commit comments