From c5d75c101628acc56f3c24e1d80fd1425bf7b2bc Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Thu, 28 Jun 2018 15:29:49 -0600 Subject: [PATCH] Fix curl output issue. --- install.bash | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install.bash b/install.bash index a52a94f..66d7e76 100755 --- a/install.bash +++ b/install.bash @@ -39,23 +39,23 @@ sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea # Download and install gitea # Check if architecure is i386 and download Gitea + sudo curl -fsSL -o "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-386" if [ -n "$(uname -a | grep i386)" ]; then - sudo curl -ofsSL "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-386" fi # Check if architecure is x86 and download Gitea if [ -n "$(uname -a | grep x86_64)" ]; then - sudo curl -ofsSL "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-amd64" + sudo curl -fsSL -o "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-amd64" fi # Check if architecure is ARMv6 and download Gitea if [ -n "$(uname -a | grep armv6l)" ]; then -sudo curl -ofsSL "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-arm-6" +sudo curl -fsSL -o "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-arm-6" fi # Check if architecure is ARMv7 and download Gitea if [ -n "$(uname -a | grep armv7l)" ]; then - sudo curl -ofsSL "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-arm-7" + sudo curl -fsSL -o "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-arm-7" fi sudo chmod +x /opt/gitea/gitea-$VER @@ -63,7 +63,7 @@ rm -f /opt/gitea/gitea ln -sf gitea-$VER /opt/gitea/gitea # Download and install the gitea.service for systemd -sudo curl -ofsSL /etc/systemd/system/gitea.service https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/branch/master/dist/etc/systemd/system/gitea.service +sudo curl -fsSL -o /etc/systemd/system/gitea.service https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/branch/master/dist/etc/systemd/system/gitea.service # Start gitea sudo systemctl enable gitea