diff --git a/scripts/disable-patch.sh b/scripts/disable-patch.sh new file mode 100755 index 0000000..48eb463 --- /dev/null +++ b/scripts/disable-patch.sh @@ -0,0 +1,8 @@ +#!/usr/bin/bash + +if [ -z "$1" ]; then + echo "Usage: $0 " + exit 1 +fi + +sed -i "\#${1/./\.}#d" assets/patches.txt diff --git a/scripts/enable-patch.sh b/scripts/enable-patch.sh new file mode 100755 index 0000000..eaf4928 --- /dev/null +++ b/scripts/enable-patch.sh @@ -0,0 +1,14 @@ +#!/usr/bin/bash + +if [ -z "$1" ]; then + echo "Usage: $0 " + 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