updated patch system

This commit is contained in:
partisan 2024-12-08 17:51:31 +01:00
parent bb64cea202
commit 6c9c66bd7a
10 changed files with 434 additions and 208 deletions

13
run.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
# Check if --path argument is provided
if [[ "$#" -lt 2 ]] || [[ "$1" != "--path" ]]; then
echo "Usage: $0 --path <path-to-apply>"
exit 1
fi
# Extract the --path value
ROOT_PATH=$2
# Run the Go application with the specified path
go run main.go pref.go standard.go --path "$ROOT_PATH"