forgotten-lands-cd2025/move_conf_files.sh
2024-04-15 04:51:52 -04:00

9 lines
318 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.
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