mirror of
https://github.com/fairyglade/ly.git
synced 2025-12-20 19:24:53 +00:00
Always copy an example config file (partially addresses #801)
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
@@ -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", .{});
|
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);
|
const patched_setup = try patchFile(allocator, "res/setup.sh", patch_map);
|
||||||
try installText(patched_setup, config_dir, ly_config_directory, "setup.sh", .{ .mode = 0o755 });
|
try installText(patched_setup, config_dir, ly_config_directory, "setup.sh", .{ .mode = 0o755 });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user