This commit is contained in:
Luk Lu
2022-04-30 10:01:20 +08:00
parent 7def32e1ef
commit 6d9f784b14
5 changed files with 45 additions and 468 deletions

11
file-unpatch.sh Executable file
View File

@@ -0,0 +1,11 @@
PREFIX=%miki
SUFFIX=miki%
if [[ "$(uname)" = "Darwin" ]]
then
LC_CTYPE='C' sed -i '' "s/^$PREFIX//" $1
LC_CTYPE='C' sed -i '' "s/$SUFFIX$//" $1
else
sed -i "s/^$PREFIX//" $1
sed -i "s/$SUFFIX$//" $1
fi