xbps-triggers: fixed a stupid typo, exit from INSTALL if xbps-uhelper not found.
This commit is contained in:
parent
cca260545d
commit
9d6422bd60
2 changed files with 3 additions and 2 deletions
|
@ -10,8 +10,9 @@ pre)
|
||||||
uhelper="$(command -v xbps-uhelper.static)"
|
uhelper="$(command -v xbps-uhelper.static)"
|
||||||
elif command -v xbps-uhelper 2>&1 >/dev/null; then
|
elif command -v xbps-uhelper 2>&1 >/dev/null; then
|
||||||
uhelper="$(command -v xbps-uhelper)"
|
uhelper="$(command -v xbps-uhelper)"
|
||||||
|
else
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
[ -z "$uhelper" ] && break
|
|
||||||
|
|
||||||
set +e
|
set +e
|
||||||
${uhelper} cmpver $(${uhelper} version xbps-base-files) 0.37
|
${uhelper} cmpver $(${uhelper} version xbps-base-files) 0.37
|
||||||
|
|
|
@ -15,6 +15,6 @@ do_install()
|
||||||
install -d ${DESTDIR}/var/db/xbps/triggers
|
install -d ${DESTDIR}/var/db/xbps/triggers
|
||||||
install -m750 ${XBPS_TRIGGERSDIR}/* ${DESTDIR}/var/db/xbps/triggers
|
install -m750 ${XBPS_TRIGGERSDIR}/* ${DESTDIR}/var/db/xbps/triggers
|
||||||
for f in $(find ${DESTDIR}/var/db/xbps/triggers); do
|
for f in $(find ${DESTDIR}/var/db/xbps/triggers); do
|
||||||
echo "# end" > ${f}
|
echo "# end" >> ${f}
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue