Skip to content

Commit

Permalink
configure.sh: explicit error msg at failure
Browse files Browse the repository at this point in the history
  • Loading branch information
knocte committed Aug 16, 2023
1 parent 2268d50 commit a740e2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ set -e

if ! which make >/dev/null 2>&1; then
echo "checking for make... not found"
echo "Error: please install 'make'" >> /dev/stderr
exit 1
else
echo "checking for make... found"
Expand All @@ -15,6 +16,7 @@ if ! which dotnet >/dev/null 2>&1; then

if ! which fsharpc >/dev/null 2>&1; then
echo "checking for F# compiler... not found"
echo "Error: please install 'dotnet' (or legacy 'fsharpc')" >> /dev/stderr
exit 1
else
echo "checking for F# compiler... found"
Expand All @@ -25,6 +27,7 @@ if ! which dotnet >/dev/null 2>&1; then

if ! which xbuild >/dev/null 2>&1; then
echo "checking for xbuild... not found"
echo "Error: please install 'dotnet' (or legacy 'msbuild' or 'xbuild')" >> /dev/stderr
exit 1
else
echo "checking for xbuild... found"
Expand All @@ -40,6 +43,7 @@ if ! which dotnet >/dev/null 2>&1; then
# for downloading nuget.exe
if ! which curl >/dev/null 2>&1; then
echo "checking for curl... not found"
echo "Error: please install 'curl'" >> /dev/stderr
exit 1
else
echo "checking for curl... found"
Expand Down

0 comments on commit a740e2a

Please sign in to comment.