mirror of
https://codeberg.org/fairyglade/ly.git
synced 2026-08-18 19:44:23 +02:00
Always copy an example config file (partially addresses #801)
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
parent
a7d6b06d21
commit
fec0815161
1 changed files with 3 additions and 0 deletions
|
|
@ -175,6 +175,9 @@ fn install_ly(allocator: std.mem.Allocator, patch_map: PatchMap, install_config:
|
|||
try installText(patched_config, config_dir, ly_config_directory, "config.ini", .{});
|
||||
}
|
||||
|
||||
const patched_example_config = try patchFile(allocator, "res/config.ini", patch_map);
|
||||
try installText(patched_example_config, config_dir, ly_config_directory, "config.ini.example", .{});
|
||||
|
||||
const patched_setup = try patchFile(allocator, "res/setup.sh", patch_map);
|
||||
try installText(patched_setup, config_dir, ly_config_directory, "setup.sh", .{ .mode = 0o755 });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue