Skip to content

Commit

Permalink
Stop unstable binary detection with file command
Browse files Browse the repository at this point in the history
- ref #447
  • Loading branch information
babarot committed Dec 26, 2017
1 parent cd82438 commit 565096c
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions base/utils/releases.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -211,15 +211,11 @@ __zplug::utils::releases::index()
;;
esac

binaries=(
$(
file **/*(N-.) \
| awk -F: '$2 ~ /executable/{print $1}'
)
)

# TODO: more strictly
binaries=(**/*(N-*))
if (( $#binaries == 0 )); then
# Failed to grab binaries from GitHub Releases"
# TODO: logging
return 1
fi

Expand Down

0 comments on commit 565096c

Please sign in to comment.