sync/home_external/.bash_aliases_branched

17 lines
303 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
updatePackages() {
noconfirm=
if [[ $1 == "-y" ]]; then
noconfirm="--no-confirm";
fi
executeAndNotify "doUpdatePackages $noconfirm" "packages updated" "package update failed";
}
doUpdatePackages() {
pamac update $1;
pamac remove --orphans --cascade $1;
}