Skip to content

Commit

Permalink
Fix bug in shebang ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
ty-porter authored Feb 28, 2024
1 parent 9e563b9 commit a3c2c30
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,13 @@ if [ "$SKIP_VENV" = false ]; then
fi
chmod +x main.py

# Add template to .git/config (if it doesn't already exist), and trigger the filter by adding the file.
# After that, the shebang should be ignored.
if ! grep -q "noshebang" ./.git/config; then
# Add template to .git/config, and trigger the filter by adding the file.
# After that, the shebang should be ignored.
cat .git-config-template >> .git/config
git add main.py
fi

git add main.py
fi
fi
PYTHON=$(which python3)
Expand Down

0 comments on commit a3c2c30

Please sign in to comment.