瀏覽代碼

bin/mklib: Clear CDPATH to avoid damaging expand_archive output

The bash 'cd' command tends to emit random stuff to stdout when the
CDPATH variable is set, so clear it to keep extra filenames from being
emitted from the expand_archive function, which would otherwise cause
mklib to fail.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
tags/7.8-rc1
Keith Packard 15 年之前
父節點
當前提交
edd85bcd6b
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. 4
    0
      bin/mklib

+ 4
- 0
bin/mklib 查看文件

@@ -25,6 +25,10 @@
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


# Clear CDPATH as the 'cd' command will echo stuff
# to stdout if it is set
unset CDPATH

# Given a list of files, look for .a archives and unpack them.
# Return the original list of files minus the .a files plus the unpacked files.
# first param: name of a temp directory (to be deleted when finished)

Loading…
取消
儲存