diff options
author | Vitaly Zdanevich <zdanevich.vitaly@ya.ru> | 2024-07-18 21:25:00 +0400 |
---|---|---|
committer | Vitaly Zdanevich <zdanevich.vitaly@ya.ru> | 2024-07-18 21:25:00 +0400 |
commit | 10e643c31b2df2c5d9a53068c1f9eba8ec315103 (patch) | |
tree | d2bc16f38e72e609b0af288a10a7481a1bca63a8 /app-backup | |
parent | app-misc/via: add missing || die (diff) | |
download | guru-10e643c31b2df2c5d9a53068c1f9eba8ec315103.tar.gz guru-10e643c31b2df2c5d9a53068c1f9eba8ec315103.tar.bz2 guru-10e643c31b2df2c5d9a53068c1f9eba8ec315103.zip |
app-backup/timeshift-autosnap: ExcessiveLineLength fix
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
Diffstat (limited to 'app-backup')
-rw-r--r-- | app-backup/timeshift-autosnap/timeshift-autosnap-0.9-r1.ebuild | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/app-backup/timeshift-autosnap/timeshift-autosnap-0.9-r1.ebuild b/app-backup/timeshift-autosnap/timeshift-autosnap-0.9-r1.ebuild index 36a6cbead..5f0c5c0f4 100644 --- a/app-backup/timeshift-autosnap/timeshift-autosnap-0.9-r1.ebuild +++ b/app-backup/timeshift-autosnap/timeshift-autosnap-0.9-r1.ebuild @@ -17,11 +17,17 @@ RDEPEND="app-backup/timeshift" PATCHES=( "${FILESDIR}/${PN}-remove-arch-specific.patch" ) +bashrc=/etc/portage/bashrc DISABLE_AUTOFORMATTING=1 -DOC_CONTENTS='to run timeshift-autosnap everytime you emerge a package run: -$ touch /etc/portage/bashrc -$ grep -q "#!/bin/" /etc/portage/bashrc || awk -i inplace "BEGINFILE{print "#!/bin/sh"}{print}" /etc/portage/bashrc -$ grep -q timeshift-autosnap /etc/portage/bashrc || echo "function pre_pkg_setup() { /usr/bin/timeshift-autosnap ; }" >> /etc/portage/bashrc' +DOC_CONTENTS="to run timeshift-autosnap everytime you emerge a package run: +# touch ${bashrc} + +# grep -q '#!/bin/' ${bashrc} || awk -i inplace 'BEGINFILE{print '#!/bin/sh'}{print}' ${bashrc} + +# grep -q timeshift-autosnap ${bashrc} || echo ' +function pre_pkg_setup() { + /usr/bin/timeshift-autosnap ; +}' >> ${bashrc}" src_install(){ dobin timeshift-autosnap |