Files
Vita3K/.ci/common.sh
T
KorewaWatchful cf37c74444 ci: overhaul ci
2026-05-21 10:50:42 -04:00

16 lines
271 B
Bash

#!/usr/bin/env bash
set -euo pipefail
require_arg() {
local value="${1:-}"
local name="${2:-argument}"
if [[ -z "$value" ]]; then
echo "Missing required argument: $name" >&2
exit 1
fi
}
git_short_sha() {
git rev-parse --short HEAD
}