Skip to content

Commit

Permalink
Fix shebang for Python scripts (#3370)
Browse files Browse the repository at this point in the history
* Fix shebang to work for Linux and Git Bash shells on Windows
  • Loading branch information
jmgrady authored Sep 27, 2024
1 parent 6bbfc5b commit 631d139
Show file tree
Hide file tree
Showing 25 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion deploy/scripts/app_release.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion deploy/scripts/aws_env.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python3
#!/usr/bin/env python
"""Set AWS Environment variables from aws cli profiles."""

from __future__ import annotations
Expand Down
2 changes: 1 addition & 1 deletion deploy/scripts/build.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python

"""
Build the containerd images for The Combine.
Expand Down
2 changes: 1 addition & 1 deletion deploy/scripts/check_certs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python3
#!/usr/bin/env python

import argparse
import subprocess
Expand Down
2 changes: 1 addition & 1 deletion deploy/scripts/combine_charts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python3
#!/usr/bin/env python
"""
Update the Helm chart version with the specified version.
"""
Expand Down
2 changes: 1 addition & 1 deletion deploy/scripts/kube_env.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
"""Manage the Kubernetes environment for kubectl & helm."""

from __future__ import annotations
Expand Down
2 changes: 1 addition & 1 deletion deploy/scripts/package_images.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python3
#!/usr/bin/env python

"""
Package the container images used for The Combine to support air-gapped installation.
Expand Down
2 changes: 1 addition & 1 deletion deploy/scripts/sem_dom_import.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python3
#!/usr/bin/env python
"""
Create data files for importing the Semantic Domain information into the Mongo database.
Expand Down
2 changes: 1 addition & 1 deletion deploy/scripts/setup_cluster.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
"""Install the pre-requisite helm charts for the Combine on a k8s cluster."""

from __future__ import annotations
Expand Down
2 changes: 1 addition & 1 deletion deploy/scripts/setup_combine.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python3
#!/usr/bin/env python

"""
Install The Combine Helm charts on a specified Kubernetes cluster.
Expand Down
2 changes: 1 addition & 1 deletion deploy/scripts/setup_target.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python3
#!/usr/bin/env python

import argparse
import os
Expand Down
2 changes: 1 addition & 1 deletion maintenance/scripts/add_user_to_proj.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
"""
Add user to a project.
Expand Down
2 changes: 1 addition & 1 deletion maintenance/scripts/combine_backup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
"""Create a backup of TheCombine and push the file to AWS S3 service."""

import argparse
Expand Down
2 changes: 1 addition & 1 deletion maintenance/scripts/combine_restore.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
"""
Restore The Combine from a backup stored in the AWS S3 service.
Expand Down
2 changes: 1 addition & 1 deletion maintenance/scripts/db_update_audio_type.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python3
#!/usr/bin/env python

import argparse
import logging
Expand Down
2 changes: 1 addition & 1 deletion maintenance/scripts/get_fonts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
"""
Generates font support for all SIL fonts used in Mui-Language-Picker.
Expand Down
2 changes: 1 addition & 1 deletion maintenance/scripts/monitor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
"""
Monitor TLS secrets for changes and push changes to AWS S3.
Expand Down
2 changes: 1 addition & 1 deletion maintenance/scripts/rm_project.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
"""
Remove a project and its associated data from TheCombine.
Expand Down
2 changes: 1 addition & 1 deletion maintenance/scripts/update_cert.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
"""
Check the expiration time of the TLS secret and update if needed.
Expand Down
2 changes: 1 addition & 1 deletion scripts/clean_aws_repo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python

"""
This script cleans out old docker images from the AWS ECR repository.
Expand Down
2 changes: 1 addition & 1 deletion scripts/cleanup_local_repo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python

"""Remove all temporary files and folders within the local Git repository.
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_openapi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python

"""Regenerate the frontend OpenAPI bindings to the backend.
Expand Down
2 changes: 1 addition & 1 deletion scripts/get_fonts_dev.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python

"""
Runs maintenance/scripts/get_fonts.py with dev arguments for -f and -o.
Expand Down
2 changes: 1 addition & 1 deletion scripts/split_dictionary.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
"""
Splits a dictionary file into smaller files.
"""
Expand Down
2 changes: 1 addition & 1 deletion scripts/subtitle_tutorial_video.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
"""
Add subtitles to a tutorial video.
If video path is not provided, still generates .srt files.
Expand Down

0 comments on commit 631d139

Please sign in to comment.