Commit dd3bbef3 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm install: stop on install non-existent file

parent d5c801b1
...@@ -343,11 +343,14 @@ epm_install_files() ...@@ -343,11 +343,14 @@ epm_install_files()
local files="$*" local files="$*"
[ -z "$files" ] && return [ -z "$files" ] && return
# TODO: enable support only for systems with support for it
# on some systems install target can be a real path # on some systems install target can be a real path
# use hi-level for install by file path (f.i. epm install /usr/bin/git) # use hi-level for install by command path (f.i. epm install /usr/bin/git)
if __epm_if_command_path $files ; then if __epm_if_command_path $files ; then
epm_install_names $files epm_install_names $files
return return
elif is_dirpath "$1" && [ ! -f "$1" ] ; then
fatal "Can't install non-existent file '$1'"
fi fi
# TODO: check read permissions # TODO: check read permissions
......
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