summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-02-08 17:23:43 +0100
committerDavid Seifert <soap@gentoo.org>2020-02-08 17:23:43 +0100
commit051388e60e60adda0ad68450bac33571313deac3 (patch)
tree4653aed136640c2450d717b58b986740f517bf29 /sys-fs/btrfsmaintenance
parentsys-devel/ct-ng: [QA] Fix UnnecessarySlashStrip (diff)
downloadgentoo-051388e60e60adda0ad68450bac33571313deac3.tar.gz
gentoo-051388e60e60adda0ad68450bac33571313deac3.tar.bz2
gentoo-051388e60e60adda0ad68450bac33571313deac3.zip
sys-fs/btrfsmaintenance: [QA] Fix UnnecessarySlashStrip
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sys-fs/btrfsmaintenance')
-rw-r--r--sys-fs/btrfsmaintenance/btrfsmaintenance-0.4.2.ebuild6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys-fs/btrfsmaintenance/btrfsmaintenance-0.4.2.ebuild b/sys-fs/btrfsmaintenance/btrfsmaintenance-0.4.2.ebuild
index ed7fa2413f8b..3406ed71445e 100644
--- a/sys-fs/btrfsmaintenance/btrfsmaintenance-0.4.2.ebuild
+++ b/sys-fs/btrfsmaintenance/btrfsmaintenance-0.4.2.ebuild
@@ -41,9 +41,9 @@ src_install() {
pkg_postinst() {
elog "Installing default btrfsmaintenance scripts"
if use systemd; then
- "${EROOT%/}"/usr/share/btrfsmaintenance/btrfsmaintenance-refresh-cron.sh systemd-timer || die
+ "${EROOT}"/usr/share/btrfsmaintenance/btrfsmaintenance-refresh-cron.sh systemd-timer || die
else
- "${EROOT%/}"/usr/share/btrfsmaintenance/btrfsmaintenance-refresh-cron.sh || die
+ "${EROOT}"/usr/share/btrfsmaintenance/btrfsmaintenance-refresh-cron.sh || die
fi
elog "Now edit cron periods and mount points in /etc/default/btrfsmaintenance "
elog "then run /usr/share/btrfsmaintenance/btrfsmaintenance-refresh-cron.sh to"
@@ -57,6 +57,6 @@ pkg_postinst() {
pkg_prerm() {
if [[ -z ${REPLACED_BY_VERSION} ]] ; then
elog "Removing symlinks from btrfsmaintenance cron tasks"
- "${EROOT%/}"/usr/share/btrfsmaintenance/btrfsmaintenance-refresh-cron.sh uninstall || die
+ "${EROOT}"/usr/share/btrfsmaintenance/btrfsmaintenance-refresh-cron.sh uninstall || die
fi
}