diff --git a/Dist/.InvokeCLIOnMainSln.sh b/Dist/.InvokeCLIOnMainSln.sh index 9b1e1b566e..075ad692b6 100755 --- a/Dist/.InvokeCLIOnMainSln.sh +++ b/Dist/.InvokeCLIOnMainSln.sh @@ -11,5 +11,5 @@ shift if [ -z "$NUGET_PACKAGES" ]; then export NUGET_PACKAGES="$HOME/.nuget/packages"; fi printf "running 'dotnet %s' in %s configuration, extra args: %s\n" "$cmd" "$config" "$*" version=$(grep -Po "MainVersion = \"\K(.*)(?=\")" src/BizHawk.Common/VersionInfo.cs) -git_hash=$(git rev-parse --verify HEAD) +git_hash="$(git rev-parse --verify HEAD || printf "0000000000000000000000000000000000000000")" dotnet "$cmd" BizHawk.sln -c "$config" -m -clp:NoSummary -p:Version="$version" -p:SourceRevisionId="$git_hash" "$@"