Fix save_config_history.sh when options are passed

Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
Gilles Peskine
2025-09-23 16:24:05 +02:00
parent 4402172a0f
commit 00dddd271f
+1
View File
@@ -37,6 +37,7 @@ while getopts o:d: OPTLET; do
*) usage >&2; exit 120;;
esac
done
shift $((OPTIND - 1))
if [ $# -ne 2 ]; then
echo >&2 "This script requires exactly two non-option arguments: COMMIT VERSION"