update descriptions to show just pacman command
This commit is contained in:
parent
a54835d7ff
commit
4dca29d2e6
2 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ PACMAN_CMD=$(ps -C pacman -o args=)
|
||||||
PREFILE=/etc/snapper/.snap-pac-pre
|
PREFILE=/etc/snapper/.snap-pac-pre
|
||||||
if [ -f $PREFILE ]; then
|
if [ -f $PREFILE ]; then
|
||||||
SNAPPERPACPRE=$(cat $PREFILE)
|
SNAPPERPACPRE=$(cat $PREFILE)
|
||||||
snapper --config root create --cleanup-algorithm number --type post --pre-number $SNAPPERPACPRE --description "pacman posttransaction ($PACMAN_CMD)"
|
snapper --config root create --cleanup-algorithm number --type post --pre-number $SNAPPERPACPRE --description "$PACMAN_CMD"
|
||||||
rm $PREFILE
|
rm $PREFILE
|
||||||
else
|
else
|
||||||
echo "WARNING: $PREFILE does not exist, so not performing post snapshot. If you are initially installing snap-pac, this is normal."
|
echo "WARNING: $PREFILE does not exist, so not performing post snapshot. If you are initially installing snap-pac, this is normal."
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
PACMAN_CMD=$(ps -C pacman -o args=)
|
PACMAN_CMD=$(ps -C pacman -o args=)
|
||||||
snapper --config root create --type pre --cleanup-algorithm number --print-number --description "pacman pretransaction ($PACMAN_CMD)" > /etc/snapper/.snap-pac-pre
|
snapper --config root create --type pre --cleanup-algorithm number --print-number --description "$PACMAN_CMD" > /etc/snapper/.snap-pac-pre
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue