From e72316391afc194e92b19636033d652b61a67fb5 Mon Sep 17 00:00:00 2001 From: Joshua Potter Date: Mon, 27 Nov 2023 12:45:41 -0700 Subject: [PATCH] Force `mv` in mix spec. --- specs/mix/runner | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/specs/mix/runner b/specs/mix/runner index b5fce42..e52de38 100755 --- a/specs/mix/runner +++ b/specs/mix/runner @@ -46,10 +46,9 @@ cp -r template/* "$BUILD" # subdirectory to avoid interaction and potential overwriting of files. nix develop "$BUILD" --command bash -c "mix new $BUILD/project --app '$APP'" -# Can now copy over all the generated files into the intermediate build -# directory. Also overwrite the generated README in favor of that already in -# our template. -mv "$BUILD"/project/* "$BUILD" +# Copy the generated files into the intermediate build directory. Also overwrite +# the generated README in favor of that defined in our template. +mv -f "$BUILD"/project/* "$BUILD" rmdir "$BUILD"/project cp template/README.md "$BUILD"