#!/usr/bin/env bash install_package() { # `sudoFlags` is initialized by the main launcher before sourcing this file. # shellcheck disable=SC2154 yay --sudoflags "${sudoFlags[@]}" --sudoloop --noconfirm -Syu # shellcheck disable=SC2154 yay --sudoflags "${sudoFlags[@]}" --sudoloop --needed --noconfirm -Sy "$@" }