From 5ffb6e84e7ddac45a292c5e6926a57a671f0e568 Mon Sep 17 00:00:00 2001 From: Juergen Hoetzel Date: Sat, 19 May 2018 18:31:00 +0200 Subject: [PATCH 1/2] Fix script permissions (executable) --- fake.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 fake.sh diff --git a/fake.sh b/fake.sh old mode 100644 new mode 100755 From e03c16d7a22248133add87a20fb416788e09b76d Mon Sep 17 00:00:00 2001 From: Juergen Hoetzel Date: Sat, 19 May 2018 18:31:00 +0200 Subject: [PATCH 2/2] Improve error handling cURL download or bash execution might fail --- fake.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fake.sh b/fake.sh index 5d27673..bb72e20 100755 --- a/fake.sh +++ b/fake.sh @@ -1,8 +1,10 @@ #!/bin/bash +set -e -o pipefail + # Install .NET Core (https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script) curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel Current PATH="~/.dotnet:$PATH" dotnet restore dotnet-fake.csproj -dotnet fake $@ \ No newline at end of file +dotnet fake $@