mirror of
https://codeberg.org/librewolf/source.git
synced 2024-12-22 13:43:04 -05:00
15 lines
244 B
Bash
15 lines
244 B
Bash
|
#!/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
|