nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

patch-shebangs: fix `env -S` with only one argument (#378221)

authored by

K900 and committed by
GitHub
622b5334 7849b08d

+1 -1
+1 -1
pkgs/build-support/setup-hooks/patch-shebangs.sh
··· 89 89 if [[ "$oldPath" == *"/bin/env" ]]; then 90 90 if [[ $arg0 == "-S" ]]; then 91 91 arg0=${args%% *} 92 - args=${args#* } 92 + [[ "$args" == *" "* ]] && args=${args#* } || args= 93 93 newPath="$(PATH="${!pathName}" type -P "env" || true)" 94 94 args="-S $(PATH="${!pathName}" type -P "$arg0" || true) $args" 95 95