瀏覽代碼

Iterate over just for actual files

pull/191/merge
Yamashita Yuu 12 年之前
父節點
當前提交
5931001cab
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      plugins/python-build/bin/python-build

+ 2
- 0
plugins/python-build/bin/python-build 查看文件

@ -1256,6 +1256,7 @@ verify_python() {
# Create symlinks
local suffix="${1##python}"
local file link
shopt -s nullglob
for file in "${PREFIX_PATH}/bin"/*; do
if [[ "${file##*/}" == *"${suffix}" ]]; then
if [[ "${file}" == *"-${suffix}" ]]; then
@ -1268,6 +1269,7 @@ verify_python() {
fi
fi
done
shopt -u nullglob
if [ ! -x "${PYTHON_BIN}" ]; then
{ colorize 1 "ERROR"

Loading…
取消
儲存