35 lines
921 B
Bash
Executable File
35 lines
921 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
destination_dir="${EQL_GAME_PATH:-${HOME}/Games/EverQuestLegends}"
|
|
script_dir=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)
|
|
configs=(
|
|
"eqclient.ini"
|
|
"Pleb_oggok_LO1.ini"
|
|
"UI_Pleb_oggok_LO1.ini"
|
|
)
|
|
|
|
if [[ ! -d "${destination_dir}" ]]; then
|
|
echo "Error: EverQuest Legends directory not found: ${destination_dir}" >&2
|
|
echo "Set EQL_GAME_PATH to the game install directory." >&2
|
|
exit 1
|
|
fi
|
|
|
|
for config in "${configs[@]}"; do
|
|
source="${script_dir}/${config}"
|
|
if [[ ! -f "${source}" ]]; then
|
|
echo "Error: tracked configuration not found: ${source}" >&2
|
|
exit 1
|
|
fi
|
|
done
|
|
|
|
for config in "${configs[@]}"; do
|
|
source="${script_dir}/${config}"
|
|
destination="${destination_dir}/${config}"
|
|
cp -- "${source}" "${destination}"
|
|
echo "Updated eql/${config}"
|
|
done
|
|
|
|
echo "Pushed ${#configs[@]} config file(s) to ${destination_dir}"
|