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
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
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
ffca5484e9
code refactoring
2017-02-04 07:11:35 -06:00
James Barnett
8f10395a88
no need to list configurations that aren't being snapshotted
2017-02-03 11:45:13 -06:00
James Barnett
e6ec6a7c8f
happy (late) new year
2017-02-03 11:41:10 -06:00
James Barnett
70859e84a2
rm duplicate
2017-02-03 11:04:52 -06:00
James Barnett
b737252a4e
limit description length
2017-02-03 11:04:09 -06:00
James Barnett
42b8a93292
warn if pacman was not found to be running
2017-02-03 09:41:31 -06:00
James Barnett
54df716ec1
make if logic clearer
2017-02-03 09:36:57 -06:00
James Barnett
7d981ff6fd
add removal to main script
2017-02-03 08:42:43 -06:00
James Barnett
439f925abf
warning message formatting
...
error messge formatting
2017-02-03 08:36:20 -06:00
James Barnett
8ef411732e
use trap for error
2017-02-03 07:54:24 -06:00
James Barnett
c5b822c2dd
add description if pacman was not found to be running
2017-02-03 07:46:58 -06:00
James Barnett
ac28d14ed8
add trap for SIGTERM and SIGINT
2017-02-03 07:46:37 -06:00
James Barnett
7f1e35b20a
use printf
2017-02-03 07:41:16 -06:00
James Barnett
6594945ecf
ensure UTF font is used
2016-10-03 09:09:08 -05:00
James Barnett
c208cbe7e9
Use "done" instead of checkmark in virtual consoles
...
Unicode checkmark is not available in virtual console fonts.
Fixes #5 .
2016-09-08 08:57:10 -05:00
James Barnett
97dfcebeeb
improve spacing
2016-09-01 07:31:51 -05:00
James Barnett
9625951a11
update readme
2016-09-01 07:30:22 -05:00
James Barnett
5417160503
update documentation on PACMAN_ABORT_ON_FAIL
2016-08-31 21:03:46 -05:00
James Barnett
9237b519f7
add option to abort pacman transaction on script fail
2016-08-31 20:55:42 -05:00
James Barnett
5ef0091d9b
update comment
2016-08-31 20:44:23 -05:00
James Barnett
a7b017b326
fix checkmark
2016-08-31 20:35:15 -05:00
James Barnett
c6e5f06691
make echo use escape code
2016-08-31 20:31:53 -05:00
James Barnett
a7429f8838
add snap-pac-remove
2016-08-31 20:27:31 -05:00
James Barnett
71ee66826e
Revert "color more output"
...
Doesn't look good in pacman log.
This reverts commit 43ae966afa .
2016-08-31 16:08:02 -05:00
James Barnett
43ae966afa
color more output
2016-08-31 16:05:41 -05:00