From c828081c3d591e4d1b53e56ad1e593e8195f74b7 Mon Sep 17 00:00:00 2001 From: sneurlax Date: Tue, 21 May 2024 17:05:45 -0500 Subject: [PATCH] require args --- scripts/app_config/update_version.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/app_config/update_version.sh b/scripts/app_config/update_version.sh index d75fbdb23..8ab49f0d8 100755 --- a/scripts/app_config/update_version.sh +++ b/scripts/app_config/update_version.sh @@ -6,6 +6,11 @@ usage() { exit 1 } +# Check if no arguments are provided. +if [ $# -eq 0 ]; then + usage +fi + # Parse command-line arguments. while getopts "v:b:" opt; do case "$opt" in