Skip to content

Commit

Permalink
shellcheck fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tearran committed Sep 24, 2024
1 parent d28a1c4 commit aa4686b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/armbian-configng/config.ng.system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ module_options+=(
#
function apt_install_wrapper() {
if [ -t 0 ]; then
debconf-apt-progress -- $@
debconf-apt-progress -- "$@"
else
# Terminal not defined - proceed without TUI
$@
"$@"
fi
}

Expand Down Expand Up @@ -277,7 +277,7 @@ function adjust_motd() {

INLIST=($(grep THIS_SCRIPT= /etc/update-motd.d/* | cut -d"=" -f2 | sed "s/\"//g"))
CHOICES=$(whiptail --separate-output --nocancel --title "Adjust welcome screen" --checklist "" 11 50 5 "${LIST[@]}" 3>&1 1>&2 2>&3)
INSERT=$(echo ${INLIST[@]} ${CHOICES[@]} | tr ' ' '\n' | sort | uniq -u | tr '\n' ' ' | sed 's/ *$//')
INSERT="$(echo ${INLIST[@]} ${CHOICES[@]} | tr ' ' '\n' | sort | uniq -u | tr '\n' ' ' | sed 's/ *$//')"
# adjust motd config
sed -i "s/^MOTD_DISABLE=.*/MOTD_DISABLE=\"$INSERT\"/g" /etc/default/armbian-motd

Expand Down

0 comments on commit aa4686b

Please sign in to comment.