Commit graph

262 commits

Author SHA1 Message Date
James Barnett
65fdd716e0
change PRE_POST to SNAPSHOT 2018-01-17 21:21:07 -05:00
James Barnett
f9b2c62ab7
unset vars in loop; fix PRE_POST defaults 2018-01-17 21:14:23 -05:00
James Barnett
d8ef209911
update manpage 2018-01-17 20:49:35 -05:00
James Barnett
9530dd9a1b
Merge branch 'master' of github.com:wesbarnett/snap-pac 2018-01-17 20:33:51 -05:00
James “Wes” Barnett
41919ab4ad
Merge pull request #16 from jonasc/patch-1
Read configuration values from `/etc/snap-pac`
2018-01-18 01:26:48 +00:00
James Barnett
4ec3acfee5
Source settings from /etc/snap-pac and not snapper's files 2018-01-17 18:33:32 -05:00
jonasc
c0f92f1cfb
Read configuration values from /etc/snap-pac
Test whether `/etc/snap-pac` is a readable file and then source it.
Set `DESC_LIMIT` only to the default value of `48` if it was not specified in the sourced file.
2018-01-05 15:22:44 +01:00
James Barnett
f21b4998a4 typo
Signed-off-by: James Barnett <wes@wbarnett.us>
2017-12-17 21:12:30 -05:00
James Barnett
a6e0cd3287
error tracing 2017-05-31 12:59:48 -04:00
James Barnett
e6d48a89ad
remove unused variable 2017-04-20 08:36:29 -05:00
James Barnett
38c0c29605
undo change 2017-04-18 21:00:52 -05:00
James Barnett
a368582080
notes on kernel branch 2017-04-18 20:49:51 -05:00
James Barnett
a2048588af
rm old manpage info 2017-03-25 07:32:06 -05:00
James Barnett
05e10dcff3
split up snapper command to catch errors 2017-03-25 07:30:32 -05:00
James Barnett
335745bd8b
update manpage 2017-03-22 18:17:34 -05:00
James Barnett
325c8f45c3
udpate docs, rm unneeded checks 2017-03-22 18:11:27 -05:00
James Barnett
a54039effe
rm warning cmd (not used); update error fmt 2017-03-21 16:11:23 -05:00
James Barnett
c41c294dba
Get parent of script call (may not be pacman)
Check for pre or post args, since no longer checking command. Update manpage.
2017-03-20 07:54:21 -05:00
James Barnett
613a1a3552
move hook 2017-02-14 13:59:39 -06:00
James Barnett
59eb91c5f8
move warning to hook 2017-02-14 13:57:09 -06:00
James Barnett
1eebf453e0
Remove redundant checks
Just check to see if pacman is running
2017-02-14 13:51:00 -06:00
James Barnett
6efd9d6fc7
Remove check for root
Snapper may not actually require it depending on how the user set it up,
and if this is run from pacman (as it should be), it will always be run
as root
2017-02-14 13:22:18 -06:00
James Barnett
923d232f8e
create set_defaults 2017-02-14 13:22:00 -06:00
James Barnett
9a8c20ce1a
Revert "no need to check for root, since permissions will be checked."
This reverts commit 39bc6ea222.
2017-02-14 13:17:17 -06:00
James Barnett
39bc6ea222
no need to check for root, since permissions will be checked. 2017-02-14 13:16:09 -06:00
James Barnett
89db1fcfe7
sourcing already tests if file exists 2017-02-14 13:13:56 -06:00
James Barnett
29be92e46a
formatting 2017-02-14 13:11:47 -06:00
James Barnett
b14f923a09
Remove test if there are no snapper configs
this is tested at the end of the script already
2017-02-14 13:09:55 -06:00
James Barnett
b5220f2a5d
revert prev change on abort on fail 2017-02-14 12:00:14 -06:00
James Barnett
eabc759750
wording 2017-02-14 11:53:58 -06:00
James Barnett
c8d14e43d5
add back exit 0 2017-02-14 11:51:37 -06:00
James Barnett
267a497f4e
fix pacman abort on fail 2017-02-14 11:49:19 -06:00
James Barnett
123e33e162
update description; use bash for globbing 2017-02-14 11:36:33 -06:00
James Barnett
83e578369d
rm of prefile can be done directly in hook 2017-02-14 11:30:18 -06:00
James Barnett
02770cffc6
prefile not defined in correct location 2017-02-14 11:28:01 -06:00
James Barnett
505d62a80d
most likely is going to be set to no 2017-02-14 11:25:47 -06:00
James Barnett
e9a5cf31af
formatting 2017-02-14 11:21:00 -06:00
James Barnett
ea299e2b8a
more refactoring 2017-02-14 11:13:36 -06:00
James Barnett
1969e5bd15
output format 2017-02-14 11:03:06 -06:00
James Barnett
591a0730c6
some cleanup 2017-02-14 11:01:19 -06:00
James Barnett
e3537fab43
put rm file in correct spot 2017-02-14 09:45:31 -06:00
James Barnett
d162241a1b
set name variable 2017-02-14 09:39:57 -06:00
James Barnett
6105acf78b
why do we need a checkmark?
The number itself tells us it was completed
2017-02-14 09:39:48 -06:00
James Barnett
2edea865b0
removal should be checked first in loop 2017-02-14 09:05:04 -06:00
James Barnett
5011637263
add truncate_description 2017-02-14 09:01:46 -06:00
James Barnett
f7bf18e85c
Code refactoring 2017-02-14 08:42:43 -06:00
James Barnett
51cee6cf6c
Check for utf8 as well as UTF-8 in LANG 2017-02-13 06:17:20 -06:00
James Barnett
d99b2a759f
update README 2017-02-07 07:41:19 -06:00
James Barnett
eee3dec43e
manpage typ 2017-02-04 08:01:34 -06:00
James Barnett
9f8918a30e
fix makefile README 2017-02-04 07:59:31 -06:00