Skip to content

Commit e432d0b

Browse files
author
Jose Gregorio Narvaez Pernalete
authored
Merge pull request #3 from oarrabi/goyox86/more-installer-tweaks
Tweaking cURL invocations for better errors and not show HTTP errors.
2 parents 61d26a8 + 70223dc commit e432d0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/bash
2-
echo "Installing Guaka generator. Please wait.."
2+
echo "Installing Guaka generator. Please wait..."
33
REPOSITORY="oarrabi/Guaka-Generator"
44

55
DEFAULT_OS=$(uname -s | tr '[:upper:]' '[:lower:]')
@@ -15,7 +15,7 @@ ARCH=${4:-$DEFAULT_ARCH}
1515
REPOSITORY_OWNER=$(echo $REPOSITORY | cut -f1 -d/)
1616
REPOSITORY_NAME=$(echo $REPOSITORY | cut -f2 -d/)
1717
RELEASES_URL="https://api.github.com/repos/$REPOSITORY_OWNER/$REPOSITORY_NAME/releases"
18-
RELEASES_RESPONSE=$(curl -s "$RELEASES_URL")
18+
RELEASES_RESPONSE=$(curl -sSf "$RELEASES_URL")
1919
if [ $? -ne 0 ]; then
2020
echo "Error determining latest release version."
2121
exit 1
@@ -35,7 +35,7 @@ if [ -f $TEMP_TARBAL ] ; then
3535
rm $TEMP_TARBAL
3636
fi
3737

38-
curl -sL "$DOWNLOAD_URL" -o $TEMP_TARBAL
38+
curl -sSfL "$DOWNLOAD_URL" -o $TEMP_TARBAL
3939
if [ $? -ne 0 ]; then
4040
echo "Error downloading the release tarball."
4141
exit 1

0 commit comments

Comments
 (0)