Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: run shfmt #80

Merged
merged 2 commits into from
Sep 14, 2024
Merged

chore: run shfmt #80

merged 2 commits into from
Sep 14, 2024

Conversation

josegonzalez
Copy link
Member

No description provided.

@dokku-bot
Copy link

sh-checker report

To get the full details, please check in the job output.

shellcheck errors
shellcheck checking is disabled.
shfmt errors

'shfmt -l -d -i 2' returned error 1 finding the following formatting issues:

----------
entrypoint
--- entrypoint.orig
+++ entrypoint
@@ -21,31 +21,31 @@
 # Parse arguments
 while getopts ":t:c:p:" opt; do
   case $opt in
-    t)
-      timeout=$OPTARG
-      if ! echo "$timeout" | grep -qE '^[0-9]+$'; then
-        echo "Invalid timeout number: $timeout" >&2
-        exit 1
-      fi
-      ;;
-    c)
-      TARGETS="$OPTARG"
-      ;;
-    p)
-      PORTS="$OPTARG"
-      ;;
-    \?)
-      set +x
-      echo "Invalid option: -$OPTARG" >&2
-      usage
+  t)
+    timeout=$OPTARG
+    if ! echo "$timeout" | grep -qE '^[0-9]+$'; then
+      echo "Invalid timeout number: $timeout" >&2
       exit 1
-      ;;
-    :)
-      set +x
-      echo "Option -$OPTARG requires an argument." >&2
-      usage
-      exit 1
-      ;;
+    fi
+    ;;
+  c)
+    TARGETS="$OPTARG"
+    ;;
+  p)
+    PORTS="$OPTARG"
+    ;;
+  \?)
+    set +x
+    echo "Invalid option: -$OPTARG" >&2
+    usage
+    exit 1
+    ;;
+  :)
+    set +x
+    echo "Option -$OPTARG requires an argument." >&2
+    usage
+    exit 1
+    ;;
   esac
 done
 
----------

You can reformat the above files to meet shfmt's requirements by typing:

  shfmt -l -d -i 2 -w filename


@josegonzalez josegonzalez merged commit 19332e9 into main Sep 14, 2024
8 checks passed
@josegonzalez josegonzalez deleted the run-shfmt branch September 14, 2024 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants