From 191784d1f2d5c529bea24c236c7afe20b57f5a79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Thu, 16 Jan 2025 09:42:50 +0100 Subject: [PATCH] sync-camera: require arguments. --- sync-camera | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sync-camera b/sync-camera index 28dd6c8..fb1e172 100755 --- a/sync-camera +++ b/sync-camera @@ -11,6 +11,13 @@ function print_usage() { echo "USAGE: ${0##*/} -d -o [-t ] [-r]" } +if [ $# -eq 0 ] +then + >&2 echo "No arguments specified!" + print_usage + exit 1 +fi + while getopts "d:o:t:rh" opt do case "$opt" in