about summary refs log tree commit diff
path: root/pkgs/build-support/setup-hooks
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2024-06-02 18:56:49 +0200
committerGitHub <noreply@github.com>2024-06-02 18:56:49 +0200
commit7be7b5dfd2a7def4029b57d7156009fb027791c2 (patch)
treeaec9529dc981282a608e0b91295ab91c20c1c415 /pkgs/build-support/setup-hooks
parent814ce46d94d7bb171ec171539521767971dbb0ea (diff)
parent6b6073f1fb70ee48e9ab626778a70f14f6829bf5 (diff)
Merge pull request #289517 from SFrijters/shell-completion-check
Diffstat (limited to 'pkgs/build-support/setup-hooks')
-rw-r--r--pkgs/build-support/setup-hooks/install-shell-files.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/build-support/setup-hooks/install-shell-files.sh b/pkgs/build-support/setup-hooks/install-shell-files.sh
index 194b408b10501..4f4e215da4df2 100644
--- a/pkgs/build-support/setup-hooks/install-shell-files.sh
+++ b/pkgs/build-support/setup-hooks/install-shell-files.sh
@@ -219,6 +219,11 @@ installShellCompletion() {
         else
             install -Dm644 -T "$arg" "$outPath"
         fi || return
+
+        if [ ! -s "$outPath" ]; then
+            echo "installShellCompletion: error: installed shell completion file \`$outPath' does not exist or has zero size" >&2
+            return 1
+        fi
         # Clear the per-path flags
         name=
     done