Patcher/run.sh
2024-12-08 17:51:31 +01:00

13 lines
304 B
Bash
Executable file

#!/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"