mirror of https://github.com/Cesura/pastey.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
715 B
20 lines
715 B
#!/bin/bash
|
|
|
|
# Patch functions.py
|
|
sed -i '/^[^#]/ s/\(^.*guesses = guess.probabilities.*$\)/#\ \1/' pastey/functions.py
|
|
sed -i '/^[^#]/ s/\(^.*from __main__ import guess.*$\)/#\ \1/' pastey/functions.py
|
|
sed -i '/^[^#]/ s/\(^.*language = guesses.*$\)/ language = "Plaintext"/' pastey/functions.py
|
|
|
|
# Patch app.py
|
|
sed -i '/^[^#]/ s/\(^.*from guesslang import Guess.*$\)/#\ \1/' app.py
|
|
sed -i '/^[^#]/ s/\(^.*guess = Guess().*$\)/#\ \1/' app.py
|
|
|
|
# Patch common.py
|
|
sed -i '/^[^#]/ s/\(^.*from __main__ import guess.*$\)/#\ \1/' pastey/common.py
|
|
|
|
# Patch templates/new.html
|
|
sed -i '/^.*value="AUTO".*$/d' templates/new.html
|
|
|
|
# Patch requirements.txt
|
|
sed -i '/^[^#]/ s/\(^.*guesslang.*$\)/#\ \1/' requirements.txt
|