From: Jakub Czajka Date: Sat, 4 May 2024 10:07:40 +0000 (+0200) Subject: Format auth.sh. X-Git-Url: https://git.ekhem.eu.org/?a=commitdiff_plain;h=807df1ccf37dc8d6feca7fcdcd804bad30a3c644;p=gdrive_proxy.git Format auth.sh. --- diff --git a/auth.sh b/auth.sh index 1661926..bf27382 100755 --- a/auth.sh +++ b/auth.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (c) 2023 Jakub Czajka +# Copyright (c) 2023-2024 Jakub Czajka # License: GPL-3.0 or later. . /etc/environment @@ -11,11 +11,11 @@ with_hyperlink() { } python3 -u -m gdrive_knife auth \ - --credentials ${gdrive_credentials} \ - --token ${gdrive_auth_token} \ - --on_success https://drive.${private_domain} \ - --on_token https://drive.${private_domain}/auth \ - --port 3030 \ + --credentials ${gdrive_credentials} \ + --token ${gdrive_auth_token} \ + --on_success https://drive.${private_domain} \ + --on_token https://drive.${private_domain}/auth \ + --port 3030 \ | while read -r line do case "${line}" in @@ -23,13 +23,13 @@ python3 -u -m gdrive_knife auth \ echo "HTTP/1.1 403 Forbidden" echo "Content-Type: text/html" echo "" - echo "$(with_hyperlink "${line}")" + echo "$(with_hyperlink "${line}")" exit 1 ;; *"Authentication URL"*) echo "HTTP/1.1 307 Temporary Redirect" - echo "Location: $(echo ${line} | sed 's/^.*\s//')" - echo "" - ;; + echo "Location: $(echo ${line} | sed 's/^.*\s//')" + echo "" + ;; esac done