pleb: use ir_black textcolors
This commit is contained in:
Executable
+34
@@ -0,0 +1,34 @@
|
||||
#!/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}"
|
||||
Reference in New Issue
Block a user