u
This commit is contained in:
11
file-unpatch.sh
Executable file
11
file-unpatch.sh
Executable 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
|
||||
Reference in New Issue
Block a user