From 5931001cab730676f1b98adb672ae02351b79291 Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Thu, 12 Jun 2014 20:37:40 +0900 Subject: [PATCH] Iterate over just for actual files --- plugins/python-build/bin/python-build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 1d0f29a7..ae6d4eb0 100755 --- a/plugins/python-build/bin/python-build +++ b/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"