mirror of https://github.com/Cesura/pastey.git
parent
074c16f3a0
commit
cafbb2d8fe
@ -0,0 +1,13 @@
|
||||
#!/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 requirements.txt
|
||||
sed -i '/^[^#]/ s/\(^.*guesslang.*$\)/#\ \1/' requirements.txt
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue