Commit f3df18b3 authored by Vitaly Lipatov's avatar Vitaly Lipatov

small fixes

parent b0f025b2
......@@ -50,7 +50,7 @@ __epm_pack_run_handler()
local i
for i in $returntarname ; do
[ -s "$i" ] || fatal "pack script for $packname returned unexist $i file"
[ -s "$i" ] || fatal "pack script for $packname returned a non-existent file $i"
done
return 0
......
......@@ -26,7 +26,7 @@ load_helper epm-status
__epm_have_repack_rule()
{
# FIXME: use real way (for any archive)
local pkgname="$(epm print name for package "$1")"
local pkgname="$(epm print name for package "$1" 2>/dev/null)"
local repackcode="$EPM_REPACK_SCRIPTS_DIR/$pkgname.sh"
[ -s "$repackcode" ]
}
......
......@@ -15,6 +15,5 @@ case "$(epm print info -a)" in
esac
PKGURL="https://dl.pstmn.io/download/latest/linux_$arch"
[ -n "$PKGURL" ] || fatal "Can't get package URL"
epm pack --install $PKGNAME "$PKGURL"
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