mirror of
https://codeberg.org/librewolf/source.git
synced 2024-12-22 13:43:04 -05:00
add enable-patch.sh
and disable-patch.sh
This commit is contained in:
parent
9da919383b
commit
564a9e2626
2 changed files with 22 additions and 0 deletions
8
scripts/disable-patch.sh
Executable file
8
scripts/disable-patch.sh
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
echo "Usage: $0 <patchfile>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
sed -i "\#${1/./\.}#d" assets/patches.txt
|
14
scripts/enable-patch.sh
Executable file
14
scripts/enable-patch.sh
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
echo "Usage: $0 <patchfile>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if grep -q "$1" assets/patches.txt; then
|
||||||
|
echo "Patch already enabled"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "$1" >>assets/patches.txt
|
||||||
|
sort assets/patches.txt -o assets/patches.txt
|
Loading…
Reference in a new issue