Commit f3df18b3 authored by Vitaly Lipatov's avatar Vitaly Lipatov

small fixes

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