summary refs log tree commit diff
path: root/pkgs/build-support/setup-hooks/move-docs.sh
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-07-18 00:02:06 +0000
committerGitHub <noreply@github.com>2021-07-18 00:02:06 +0000
commit08a8809bfe1688df8419f41fd31c2f794c4debdf (patch)
tree02c532b4ebeac226362c3723c8b9cfa1ef7e4c5c /pkgs/build-support/setup-hooks/move-docs.sh
parent11332e9137fbbab82b10312da9dad67e3607f553 (diff)
parent382fdc7ad3184c7d47f54feb535a970fe64a0f35 (diff)
downloadnixpkgs-08a8809bfe1688df8419f41fd31c2f794c4debdf.tar
nixpkgs-08a8809bfe1688df8419f41fd31c2f794c4debdf.tar.gz
nixpkgs-08a8809bfe1688df8419f41fd31c2f794c4debdf.tar.bz2
nixpkgs-08a8809bfe1688df8419f41fd31c2f794c4debdf.tar.lz
nixpkgs-08a8809bfe1688df8419f41fd31c2f794c4debdf.tar.xz
nixpkgs-08a8809bfe1688df8419f41fd31c2f794c4debdf.tar.zst
nixpkgs-08a8809bfe1688df8419f41fd31c2f794c4debdf.zip
Merge staging-next into staging
Diffstat (limited to 'pkgs/build-support/setup-hooks/move-docs.sh')
-rw-r--r--pkgs/build-support/setup-hooks/move-docs.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/build-support/setup-hooks/move-docs.sh b/pkgs/build-support/setup-hooks/move-docs.sh
index 965c16be2f6..ef31dcdce27 100644
--- a/pkgs/build-support/setup-hooks/move-docs.sh
+++ b/pkgs/build-support/setup-hooks/move-docs.sh
@@ -6,7 +6,7 @@ preFixupHooks+=(_moveToShare)
 
 _moveToShare() {
     forceShare=${forceShare:=man doc info}
-    if [[ -z $forceShare || -z $out ]]; then return; fi
+    if [ -z "$forceShare" -o -z "$out" ]; then return; fi
 
     for d in $forceShare; do
         if [ -d "$out/$d" ]; then
@@ -14,9 +14,10 @@ _moveToShare() {
                 echo "both $d/ and share/$d/ exist!"
             else
                 echo "moving $out/$d to $out/share/$d"
-                mkdir -p "$out/share"
-                mv "$out/$d" "$out/share/"
+                mkdir -p $out/share
+                mv $out/$d $out/share/
             fi
         fi
     done
 }
+