+2
-1
README.md
+2
-1
README.md
+8
-2
src/dotfiles.gleam
+8
-2
src/dotfiles.gleam
···
196
196
/// Returns the original spec
197
197
///
198
198
fn move_config_to_dotfiles(spec: Spec, home) {
199
+
// make sure the dotfiles path exists
200
+
let _ =
201
+
simplifile.create_directory_all(
202
+
filepath.directory_name(filepath.join(home, spec.dotfiles_path)),
203
+
)
204
+
199
205
simplifile.rename(
200
206
filepath.join(home, spec.target_path),
201
207
filepath.join(home, spec.dotfiles_path),
···
274
280
"--symbolic",
275
281
"--no-dereference",
276
282
"--force",
277
-
dotfiles_path |> echo,
278
-
target_path |> echo,
283
+
dotfiles_path,
284
+
target_path,
279
285
],
280
286
in: ".",
281
287
opt: [],