Commit d0d87d8e authored by Vitaly Lipatov's avatar Vitaly Lipatov

small fixes

parent dfcf4443
...@@ -79,6 +79,7 @@ epm_requires_files() ...@@ -79,6 +79,7 @@ epm_requires_files()
local pkg_files="$*" local pkg_files="$*"
[ -n "$pkg_files" ] || return [ -n "$pkg_files" ] || return
# TODO: handle separately
local PKGTYPE="$(get_package_type $pkg_files)" local PKGTYPE="$(get_package_type $pkg_files)"
case "$PKGTYPE" in case "$PKGTYPE" in
......
...@@ -791,7 +791,7 @@ get_package_type() ...@@ -791,7 +791,7 @@ get_package_type()
return return
;; ;;
*) *)
if file "$1" | grep -q " ELF " ; then if [ -r "$1" ] && file "$1" | grep -q " ELF " ; then
echo "ELF" echo "ELF"
return return
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment