rearrange command args
This commit is contained in:
parent
5738263134
commit
0b2b465b6f
1 changed files with 2 additions and 2 deletions
4
snap-pac
4
snap-pac
|
|
@ -62,7 +62,7 @@ for x in $configurations; do
|
||||||
if [[ "$pre_or_post" == "pre" ]]; then
|
if [[ "$pre_or_post" == "pre" ]]; then
|
||||||
|
|
||||||
description=${PACMAN_PRE_DESCRIPTION:-"$pacman_cmd"}
|
description=${PACMAN_PRE_DESCRIPTION:-"$pacman_cmd"}
|
||||||
snapper --config $x create --type $pre_or_post --cleanup-algorithm $cleanupalgo --print-number --description "$description" > $prefile_prefix"_"$x
|
snapper --config $x create --type $pre_or_post --cleanup-algorithm $cleanupalgo --description "$description" --print-number > $prefile_prefix"_"$x
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
elif [[ "$pre_or_post" == "post" ]]; then
|
elif [[ "$pre_or_post" == "post" ]]; then
|
||||||
|
|
@ -70,7 +70,7 @@ for x in $configurations; do
|
||||||
if [ -f $prefile_prefix"_"$x ]; then
|
if [ -f $prefile_prefix"_"$x ]; then
|
||||||
|
|
||||||
description=${PACMAN_POST_DESCRIPTION:-"$pacman_cmd"}
|
description=${PACMAN_POST_DESCRIPTION:-"$pacman_cmd"}
|
||||||
snapper --config $x create --type $pre_or_post --cleanup-algorithm $cleanupalgo --pre-number $(< $prefile_prefix"_"$x) --description "$description"
|
snapper --config $x create --type $pre_or_post --cleanup-algorithm $cleanupalgo --description "$description" --pre-number $(< $prefile_prefix"_"$x)
|
||||||
rm $prefile_prefix"_"$x
|
rm $prefile_prefix"_"$x
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue