forgotten-lands-cd2025/scripts/copy_conf_files.sh
2024-04-15 05:42:25 -04:00

11 lines
390 B
Bash
Executable File

#!/bin/bash
# I'm sure there's an easier way to do this.
# Simply copy over the conf files into the adjacent compiled directories.
echo Copying mod conf files...
for filename in source/*; do
mod_file_name=${filename//"source/"/};
old_dir="source/${mod_file_name}/mod.conf";
new_dir="mods/${mod_file_name}/mod.conf";
cp $old_dir $new_dir
done
echo Successfully copied mod conf files.