fix running validate with -v #1

Merged
artur merged 2 commits from fixValidateVerbose into main 2025-01-24 06:54:57 +00:00
Showing only changes of commit 0e523bd1ee - Show all commits

View File

@@ -43,7 +43,7 @@ if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi
declare -i MINVERSION=$TIMESTAMPING_VERSION declare -i MINVERSION=$TIMESTAMPING_VERSION
while [[ $# -gt 1 ]]; do while [[ $# -gt 0 ]]; do
KEY="$1" KEY="$1"
case $KEY in case $KEY in
@@ -66,12 +66,12 @@ while [[ $# -gt 1 ]]; do
shift # past argument shift # past argument
;; ;;
*) # unknown option *) # unknown option
echo_error "Unknown argument: $KEY" OBJECT=$KEY
exit 1 shift # past argument
;; ;;
esac esac
done done
OBJECT="$1"
if [ -z "$OBJECT" ]; then if [ -z "$OBJECT" ]; then
OBJECT="HEAD" OBJECT="HEAD"
fi fi
@@ -332,4 +332,4 @@ if validate_commit_and_parents "$COMMIT_HASH"; then
else else
echo_error "Validation Failed: There are timestamped commits in the commit history of $COMMIT_HASH which do not contain any valid timestamps." echo_error "Validation Failed: There are timestamped commits in the commit history of $COMMIT_HASH which do not contain any valid timestamps."
exit 1 exit 1
fi fi