[arkdep] Add update_diff_style setting
This commit is contained in:
parent
f768a7155b
commit
1ca0a46ae8
1 changed files with 5 additions and 4 deletions
9
arkdep
9
arkdep
|
@ -47,6 +47,7 @@ if [[ ! $1 == 'init' ]]; then
|
|||
[[ -z ${var_migrate_files+x} ]] && var_migrate_files=('/usrlocal' '/usrliblocale' '/opt' '/srv' '/nm-system-connections' '/lib/AccountsService' '/lib/bluetooth' '/lib/NetworkManager' '/lib/arkane') && printf '\e[1;33m<!>\e[0m\e[1m var_migrate_files not defined in config, using default\e[0m\n'
|
||||
[[ -z ${load_extensions+x} ]] && load_extensions=0 && printf '\e[1;33m<!>\e[0m\e[1m load_extensions not defined in config, using default\e[0m\n'
|
||||
[[ -z ${remove_tar_after_deployment+x} ]] && remove_tar_after_deployment=1 && printf '\e[1;33m<!>\e[0m\e[1m remove_tar_after_deployment not defined in config, using default\e[0m\n'
|
||||
[[ -z ${update_diff_style+x} ]] && update_diff_style='list' && printf '\e[1;33m<!>\e[0m\e[1m update_diff_style not defined in config, using default\e[0m\n'
|
||||
fi
|
||||
|
||||
## Common functions
|
||||
|
@ -329,6 +330,9 @@ init () {
|
|||
|
||||
# Remove tarball from cache once deployment is finished
|
||||
remove_tar_after_deployment=1
|
||||
|
||||
# Update diff styling, available styles: 'list'
|
||||
update_diff_style='list'
|
||||
END
|
||||
|
||||
# Add default bootloader config file
|
||||
|
@ -620,11 +624,8 @@ get_update () {
|
|||
done
|
||||
done
|
||||
|
||||
# Temporary hard code setting
|
||||
update_print_mode='list'
|
||||
|
||||
# Print changed packages and diff
|
||||
if [[ $update_print_mode == 'list' ]]; then
|
||||
if [[ $update_diff_style == 'list' ]]; then
|
||||
num=0
|
||||
|
||||
printf 'Changed:\n'
|
||||
|
|
Loading…
Add table
Reference in a new issue