xbps-triggers: virtualpkg: more slash substs.
This commit is contained in:
parent
c4914f3990
commit
750fa84ff1
2 changed files with 3 additions and 3 deletions
|
@ -25,11 +25,11 @@ run)
|
|||
[ -z "$CONF_FILE" ] && CONF_FILE=etc/xbps/xbps.conf
|
||||
[ ! -w $CONF_FILE ] && exit 0
|
||||
|
||||
confdir=$(dirname $CONF_FILE)
|
||||
confdir=$(dirname "/$CONF_FILE")
|
||||
|
||||
if [ "${TARGET}" = "post-install" ]; then
|
||||
echo "Enabled $PKGNAME virtual packages to $CONF_FILE."
|
||||
echo "include(/$confdir/virtualpkg.d/$PKGNAME.conf)" >> $CONF_FILE
|
||||
echo "include($confdir/virtualpkg.d/$PKGNAME.conf)" >> $CONF_FILE
|
||||
else
|
||||
sed -i "/include.*$PKGNAME.conf.*/d" $CONF_FILE
|
||||
echo "Disabled $PKGNAME virtual packages from $CONF_FILE."
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'xbps-triggers'
|
||||
pkgname=xbps-triggers
|
||||
version=0.34
|
||||
version=0.35
|
||||
short_desc="XBPS triggers"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
homepage="http://code.google.com/p/xbps"
|
||||
|
|
Loading…
Reference in a new issue