We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9607c4b commit 7272bdbCopy full SHA for 7272bdb
tools/split.sh
@@ -49,10 +49,10 @@ split_package() {
49
local label="$package -> $ORG/$repo"
50
51
local sha
52
- sha=$(splitsh-lite --prefix="src/$package")
+ sha=$(splitsh-lite --prefix="src/$package" | tail -1)
53
54
- if [[ -z "$sha" ]]; then
55
- echo "[error] $label - splitsh-lite failed"
+ if [[ ! "$sha" =~ ^[0-9a-f]{40}$ ]]; then
+ echo "[error] $label - splitsh-lite returned invalid SHA: $sha"
56
return 1
57
fi
58
0 commit comments