2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-21 23:00:06 -07:00

puke: Error if no built tar yet

This commit is contained in:
Dylan Araps 2019-05-10 18:23:30 +03:00
parent 917758c20b
commit 16aea551ac

2
puke
View File

@ -148,6 +148,8 @@ pkg_tar() {
}
pkg_install() {
[ -f "$bin_dir/$pkg.tar.gz" ] || die "Package must be built first."
pkg_remove "$name"
tar pxvf "$bin_dir/$pkg.tar.gz" -k -C "$sys_dir/" 2>/dev/null
log "Installed $pkg"