mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 21:21:06 +00:00
cc-wrapper: quote when saving $PATH
This commit is contained in:
parent
5986aecc4c
commit
8f48a9756b
|
@ -1,5 +1,5 @@
|
|||
#! @shell@ -e
|
||||
path_backup=$PATH
|
||||
path_backup="$PATH"
|
||||
if [ -n "@coreutils@" ]; then
|
||||
PATH="@coreutils@/bin:@gnugrep@/bin"
|
||||
fi
|
||||
|
@ -145,5 +145,5 @@ if [ -n "$NIX_CC_WRAPPER_EXEC_HOOK" ]; then
|
|||
source "$NIX_CC_WRAPPER_EXEC_HOOK"
|
||||
fi
|
||||
|
||||
PATH=$path_backup
|
||||
PATH="$path_backup"
|
||||
exec @prog@ ${extraBefore[@]} "${params[@]}" "${extraAfter[@]}"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#! @shell@ -e
|
||||
path_backup=$PATH
|
||||
path_backup="$PATH"
|
||||
if [ -n "@coreutils@" ]; then
|
||||
PATH="@coreutils@/bin"
|
||||
fi
|
||||
|
@ -104,5 +104,5 @@ if [ -n "$NIX_GNAT_WRAPPER_EXEC_HOOK" ]; then
|
|||
source "$NIX_GNAT_WRAPPER_EXEC_HOOK"
|
||||
fi
|
||||
|
||||
PATH=$path_backup
|
||||
PATH="$path_backup"
|
||||
exec @prog@ ${extraBefore[@]} "${params[@]}" ${extraAfter[@]}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#! @shell@ -e
|
||||
path_backup=$PATH
|
||||
path_backup="$PATH"
|
||||
if [ -n "@coreutils@" ]; then
|
||||
PATH="@coreutils@/bin"
|
||||
fi
|
||||
|
@ -167,5 +167,5 @@ if [ -n "$NIX_LD_WRAPPER_EXEC_HOOK" ]; then
|
|||
source "$NIX_LD_WRAPPER_EXEC_HOOK"
|
||||
fi
|
||||
|
||||
PATH=$path_backup
|
||||
PATH="$path_backup"
|
||||
exec @prog@ ${extraBefore[@]} "${params[@]}" ${extra[@]}
|
||||
|
|
Loading…
Reference in a new issue