Use ntp package instead of openntpd on arch; Fix set -u in dynamic case labels
This commit is contained in:
parent
05bd2f465c
commit
a20e50f117
|
@ -104,12 +104,12 @@ function add_summary_entry() {
|
||||||
|
|
||||||
local ptr
|
local ptr
|
||||||
case "$id" in
|
case "$id" in
|
||||||
"$DISK_ID_BIOS") ptr="[1;32m← bios[m" ;;
|
"${DISK_ID_BIOS-__unused__}") ptr="[1;32m← bios[m" ;;
|
||||||
"$DISK_ID_EFI") ptr="[1;32m← efi[m" ;;
|
"${DISK_ID_EFI-__unused__}") ptr="[1;32m← efi[m" ;;
|
||||||
"$DISK_ID_SWAP") ptr="[1;34m← swap[m" ;;
|
"${DISK_ID_SWAP-__unused__}") ptr="[1;34m← swap[m" ;;
|
||||||
"$DISK_ID_ROOT") ptr="[1;33m← root[m" ;;
|
"${DISK_ID_ROOT-__unused__}") ptr="[1;33m← root[m" ;;
|
||||||
# \x1f characters compensate for printf byte count and unicode character count mismatch due to '←'
|
# \x1f characters compensate for printf byte count and unicode character count mismatch due to '←'
|
||||||
*) ptr="[1;32m[m$(echo -e "\x1f\x1f")" ;;
|
*) ptr="[1;32m[m$(echo -e "\x1f\x1f")" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
summary_tree[$parent]+=";$id"
|
summary_tree[$parent]+=";$id"
|
||||||
|
|
|
@ -338,7 +338,7 @@ function check_has_programs() {
|
||||||
if type pacman &>/dev/null; then
|
if type pacman &>/dev/null; then
|
||||||
declare -A pacman_packages
|
declare -A pacman_packages
|
||||||
pacman_packages=(
|
pacman_packages=(
|
||||||
[ntpd]=openntpd
|
[ntpd]=ntp
|
||||||
[zfs]=""
|
[zfs]=""
|
||||||
)
|
)
|
||||||
echo "We have detected that pacman is available."
|
echo "We have detected that pacman is available."
|
||||||
|
|
Loading…
Reference in New Issue