]> git.ekhem.eu.org Git - gdrive_proxy.git/commitdiff
Format auth.sh.
authorJakub Czajka <jczajka@google.com>
Sat, 4 May 2024 10:07:40 +0000 (12:07 +0200)
committerJakub Czajka <jczajka@google.com>
Sat, 4 May 2024 10:07:40 +0000 (12:07 +0200)
auth.sh

diff --git a/auth.sh b/auth.sh
index 16619264ce6cea2ca137f5209d9c4766187e949c..bf273829bd059e156d40bdb058c1b259e7d44bb9 100755 (executable)
--- a/auth.sh
+++ b/auth.sh
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Copyright (c) 2023 Jakub Czajka <jakub@ekhem.eu.org>
+# Copyright (c) 2023-2024 Jakub Czajka <jakub@ekhem.eu.org>
 # 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 "<body>$(with_hyperlink "${line}")</body>"
+                echo "<body>$(with_hyperlink "${line}")</body>"
                 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