From 8b270a96fa3b31d85916eeb8ca9e685b56015305 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sun, 17 May 2020 12:01:23 +0200 Subject: [PATCH] skawarePackages.cleanPackaging: copy docFiles before rm noise --- pkgs/build-support/skaware/clean-packaging.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/build-support/skaware/clean-packaging.nix b/pkgs/build-support/skaware/clean-packaging.nix index 16bae04b21e..762fe25c0ac 100644 --- a/pkgs/build-support/skaware/clean-packaging.nix +++ b/pkgs/build-support/skaware/clean-packaging.nix @@ -26,11 +26,11 @@ let writeScript "common-file-actions.sh" '' #!${stdenv.shell} set -e - DOCDIR="$1" + DOCDIR="''${1?commonFileActions: DOCDIR as argv[1] required}" shopt -s globstar extglob nullglob - ${rmNoise noiseFiles} mkdir -p "$DOCDIR" ${mvDoc docFiles} + ${rmNoise noiseFiles} ''; # Shell script to check whether the build directory is empty.