mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
replace /dev/null 2>&1 with &>
This commit is contained in:
parent
8e0b7decf2
commit
297d50a907
3 changed files with 4 additions and 4 deletions
|
@ -26,5 +26,5 @@ fi
|
|||
echo "${_PACKAGE}" >binary.txt
|
||||
#shellcheck disable=SC2086
|
||||
for i in $(pacman -Ql ${_PACKAGE} | grep "/usr/bin/..*"$ | cut -d' ' -f2); do
|
||||
command -v "${i}" >/dev/null 2>&1 || echo "${i}" >>binary.txt
|
||||
command -v "${i}" &>/dev/null || echo "${i}" >>binary.txt
|
||||
done
|
||||
|
|
|
@ -39,11 +39,11 @@ _prepare_pacman() {
|
|||
mkdir -p "${_DESTDIR}/var/lib/pacman"
|
||||
fi
|
||||
# pacman-key process itself
|
||||
while pgrep -x pacman-key > /dev/null 2>&1; do
|
||||
while pgrep -x pacman-key &>/dev/null; do
|
||||
sleep 1
|
||||
done
|
||||
# gpg finished in background
|
||||
while pgrep -x gpg > /dev/null 2>&1; do
|
||||
while pgrep -x gpg &>/dev/null; do
|
||||
sleep 1
|
||||
done
|
||||
[[ -e /etc/systemd/system/pacman-init.service ]] && systemctl stop pacman-init.service
|
||||
|
|
|
@ -84,7 +84,7 @@ _dotimeset() {
|
|||
_dialog --yesno "Do you want to use UTC for your clock?\n\nIf you choose 'YES' UTC (recommended default) is used,\nwhich ensures daylightsaving is set automatically.\n\nIf you choose 'NO' Localtime is used, which means\nthe system will not change the time automatically.\nLocaltime is also prefered on dualboot machines,\nwhich also run Windows, because UTC may confuse it." 14 60 && _HARDWARECLOCK="UTC"
|
||||
_dohwclock
|
||||
# check internet connection
|
||||
if ping -c1 www.google.com >/dev/null 2>&1; then
|
||||
if ping -c1 www.google.com &>/dev/null; then
|
||||
if _dialog --yesno \
|
||||
"Do you want to use the Network Time Protocol (NTP) for syncing your clock, by using the internet clock pool?" 6 60; then
|
||||
_dialog --infobox "Syncing clock with NTP pool..." 3 45
|
||||
|
|
Loading…
Reference in a new issue