Removed interactive check. Not necessary, and causes problems

This commit is contained in:
David Thurstenson 2017-01-27 11:28:58 -06:00
parent 2b693c3ebb
commit 70b459b4e7
2 changed files with 2 additions and 6 deletions

View File

@ -1,6 +1,6 @@
# Maintainer: David Thurstenson <thurstylark@gmail.com> # Maintainer: David Thurstenson <thurstylark@gmail.com>
pkgname=tl-makepkg pkgname=tl-makepkg
pkgver=0.5 pkgver=0.6
pkgrel=1 pkgrel=1
pkgdesc="Small utility for running makepkg, then repose to add a local non-AUR package to a custom repo" pkgdesc="Small utility for running makepkg, then repose to add a local non-AUR package to a custom repo"
arch=('any') arch=('any')
@ -10,7 +10,7 @@ depends=('repose' 'pacutils')
backup=('etc/tl-makepkg.conf') backup=('etc/tl-makepkg.conf')
source=('tl-makepkg' source=('tl-makepkg'
'tl-makepkg.conf') 'tl-makepkg.conf')
md5sums=('bdaea613965516d9fbab7f688d75c859' md5sums=('a241835872805ff68ffc4e0bc687d778'
'938de8daea15f68500e969df422fd7fa') '938de8daea15f68500e969df422fd7fa')
package() { package() {

View File

@ -23,10 +23,6 @@ makepkg_run() { # Usage: makepkg_run <RepoDir> <MakepkgOpts>
makepkg "$@" makepkg "$@"
} }
# If not running interactively, don't do anything
# Allows for using these functions as commands by sourcing this script
[[ $- != *i* ]] && return
config_parse "${CONFIG_FILE:-/etc/tl-makepkg.conf}" config_parse "${CONFIG_FILE:-/etc/tl-makepkg.conf}"
makepkg_run "${config[RepoDir]}" "${config[MakepkgOpts]} $@" makepkg_run "${config[RepoDir]}" "${config[MakepkgOpts]} $@"
repose "${config[ReposeOpts]}" --root "${config[MakepkgOpts]}" --pool "${config[MakepkgOpts]}" "${config[DBFile]}" repose "${config[ReposeOpts]}" --root "${config[MakepkgOpts]}" --pool "${config[MakepkgOpts]}" "${config[DBFile]}"