diff options
author | Laszlo Ersek <lersek@redhat.com> | 2012-07-08 11:55:50 +0200 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2017-10-18 11:34:03 +0200 |
commit | 4bbf39632c840e32996e8d43137f23fb43282859 (patch) | |
tree | a38461c5e4afe524a30599f4beb5a16c18dce151 /BaseTools/BuildEnv | |
parent | 11b74aa4724af1fea95e1b28a6bf605ed22df28f (diff) | |
download | edk2-4bbf39632c840e32996e8d43137f23fb43282859.tar.gz |
BaseTools/BuildEnv: override "set -C" (noclobber) in sourcing shell env
The BuildEnv utility is sourced (executed by the user's interactive shell)
when the user sets up the build session. Some users like to set -C
(noclobber) for some additional safety in their shells, which trips up
BuildEnv. Update the redirection operator so that it overrides noclobber.
Cc: Liming Gao <liming.gao@intel.com>
Cc: Thomas Huth <thuth@redhat.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'BaseTools/BuildEnv')
-rwxr-xr-x | BaseTools/BuildEnv | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/BuildEnv b/BaseTools/BuildEnv index f74881111c..ff0c5115a5 100755 --- a/BaseTools/BuildEnv +++ b/BaseTools/BuildEnv @@ -90,7 +90,7 @@ StoreCurrentConfiguration() { # OUTPUT_FILE=$CONF_PATH/BuildEnv.sh #echo Storing current configuration into $OUTPUT_FILE - echo "# Auto-generated by ${BASH_SOURCE[0]}" > $OUTPUT_FILE + echo "# Auto-generated by ${BASH_SOURCE[0]}" >| $OUTPUT_FILE GenerateShellCodeToSetVariable WORKSPACE $OUTPUT_FILE GenerateShellCodeToSetVariable EDK_TOOLS_PATH $OUTPUT_FILE GenerateShellCodeToUpdatePath $OUTPUT_FILE |