Use ntp package instead of openntpd on arch; Fix set -u in dynamic case labels

This commit is contained in:
oddlama 2021-05-30 02:33:45 +02:00
parent 05bd2f465c
commit a20e50f117
No known key found for this signature in database
GPG Key ID: 14EFE510775FE39A
2 changed files with 6 additions and 6 deletions

View File

@ -104,12 +104,12 @@ function add_summary_entry() {
local ptr local ptr
case "$id" in case "$id" in
"$DISK_ID_BIOS") ptr="← bios" ;; "${DISK_ID_BIOS-__unused__}") ptr="← bios" ;;
"$DISK_ID_EFI") ptr="← efi" ;; "${DISK_ID_EFI-__unused__}") ptr="← efi" ;;
"$DISK_ID_SWAP") ptr="← swap" ;; "${DISK_ID_SWAP-__unused__}") ptr="← swap" ;;
"$DISK_ID_ROOT") ptr="← root" ;; "${DISK_ID_ROOT-__unused__}") ptr="← root" ;;
# \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="$(echo -e "\x1f\x1f")" ;; *) ptr="$(echo -e "\x1f\x1f")" ;;
esac esac
summary_tree[$parent]+=";$id" summary_tree[$parent]+=";$id"

View File

@ -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."